mirror of
https://github.com/raysan5/raylib.git
synced 2026-09-14 01:50:50 +00:00
Disable ShadowMap Texture Slot To Prevent Global State Leak (#6147)
This commit is contained in:
@@ -180,6 +180,9 @@ int main(void)
|
||||
DrawScene(cube, robot); // Draw the same exact things as we drew in the shadowmap!
|
||||
EndMode3D();
|
||||
|
||||
rlActiveTextureSlot(textureActiveSlot);
|
||||
rlDisableTexture();
|
||||
|
||||
DrawText("Use the arrow keys to rotate the light!", 10, 10, 30, RED);
|
||||
DrawText("Shadows in raylib using the shadowmapping algorithm!", screenWidth - 280, screenHeight - 20, 10, GRAY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user