Browse Source

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 4 weeks ago
committed by GitHub
parent
commit
db25830a67
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      examples/shaders/shaders_mesh_instancing.c

+ 1
- 0
examples/shaders/shaders_mesh_instancing.c View 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");

Loading…
Cancel
Save