diff options
| author | Ray <[email protected]> | 2021-03-17 19:40:59 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-17 19:40:59 +0100 |
| commit | e5834210d39879d1fb8ade50a6f043aa2e6e3f73 (patch) | |
| tree | 6a37efa02cd7e06ea1f92ff66753402174cd618c /examples/models/models_skybox.c | |
| parent | 1cc838cef493881fb5f66c95c712ba1e135fdd1c (diff) | |
| download | raylib-e5834210d39879d1fb8ade50a6f043aa2e6e3f73.tar.gz raylib-e5834210d39879d1fb8ade50a6f043aa2e6e3f73.zip | |
Update models_skybox.c
Diffstat (limited to 'examples/models/models_skybox.c')
| -rw-r--r-- | examples/models/models_skybox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/models/models_skybox.c b/examples/models/models_skybox.c index df604b2c..d44b11b6 100644 --- a/examples/models/models_skybox.c +++ b/examples/models/models_skybox.c @@ -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) |
