Sfoglia il codice sorgente

Update shaders_mesh_instancing.c

Due to this missing line of code the example seems is not going to work:
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");
pull/4723/head
MikiZX1 3 mesi fa
committed by GitHub
parent
commit
db25830a67
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      examples/shaders/shaders_mesh_instancing.c

+ 1
- 0
examples/shaders/shaders_mesh_instancing.c Vedi File

@ -73,6 +73,7 @@ int main(void)
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/lighting_instancing.vs", GLSL_VERSION),
TextFormat("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION));
// Get shader locations
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");

Caricamento…
Annulla
Salva