Update shaders_mesh_instancing.c
adding a missing 'locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");'
This commit is contained in:
parent
cfbba79bd3
commit
21b5383a26
|
|
@ -73,6 +73,7 @@ int main(void)
|
||||||
// Get shader locations
|
// Get shader locations
|
||||||
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
|
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
|
||||||
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");
|
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");
|
||||||
|
shader.locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");
|
||||||
|
|
||||||
// Set shader value: ambient light level
|
// Set shader value: ambient light level
|
||||||
int ambientLoc = GetShaderLocation(shader, "ambient");
|
int ambientLoc = GetShaderLocation(shader, "ambient");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user