Przeglądaj źródła

Update shaders_mesh_instancing.c

adding a missing  'locs[SHADER_LOC_MATRIX_MODEL] = GetShaderLocationAttrib(shader, "instanceTransform");'
pull/4689/head
MikiZX1 1 rok temu
committed by GitHub
rodzic
commit
21b5383a26
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      examples/shaders/shaders_mesh_instancing.c

+ 2
- 1
examples/shaders/shaders_mesh_instancing.c Wyświetl plik

@ -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);

Ładowanie…
Anuluj
Zapisz