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