diff options
Diffstat (limited to 'examples/shaders/shaders_mesh_instancing.c')
| -rw-r--r-- | examples/shaders/shaders_mesh_instancing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/shaders/shaders_mesh_instancing.c b/examples/shaders/shaders_mesh_instancing.c index 95548234..520a2d65 100644 --- a/examples/shaders/shaders_mesh_instancing.c +++ b/examples/shaders/shaders_mesh_instancing.c @@ -89,7 +89,7 @@ int main(void) // Get some shader loactions shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp"); shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos"); - shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instance"); + shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform"); // Ambient light level int ambientLoc = GetShaderLocation(shader, "ambient"); @@ -173,6 +173,7 @@ int main(void) ClearBackground(RAYWHITE); BeginMode3D(camera); + //DrawMesh(cube, material, MatrixIdentity()); DrawMeshInstanced(cube, material, transforms, instances); EndMode3D(); |
