Sfoglia il codice sorgente

Update models_skybox.c

pull/1654/head
Ray 3 anni fa
parent
commit
e5834210d3
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      examples/models/models_skybox.c

+ 4
- 0
examples/models/models_skybox.c Vedi File

@ -127,12 +127,16 @@ int main(void)
ClearBackground(RAYWHITE);
BeginMode3D(camera);
// We are inside the cube, we need to disable backface culling!
rlDisableBackfaceCulling();
rlDisableDepthMask();
DrawModel(skybox, (Vector3){0, 0, 0}, 1.0f, WHITE);
rlEnableBackfaceCulling();
rlEnableDepthMask();
DrawGrid(10, 1.0f);
EndMode3D();
if (useHDR)

Caricamento…
Annulla
Salva