Explorar el Código

Update shaders_mesh_instancing.c

adding a missing  'locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");'
pull/4689/head
MikiZX1 hace 1 año
cometido por GitHub
padre
commit
21b5383a26
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      examples/shaders/shaders_mesh_instancing.c

+ 2
- 1
examples/shaders/shaders_mesh_instancing.c Ver fichero

@ -73,7 +73,8 @@ int main(void)
// Get shader locations
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, "instanceTransform");
// Set shader value: ambient light level
int ambientLoc = GetShaderLocation(shader, "ambient");
SetShaderValue(shader, ambientLoc, (float[4]){ 0.2f, 0.2f, 0.2f, 1.0f }, SHADER_UNIFORM_VEC4);

Cargando…
Cancelar
Guardar