Added way to set global light from game.

+ Some clean up in the mesh renderer
This commit is contained in:
2026-08-09 18:00:05 -04:00
parent 73aa4a846b
commit 5bc4375265
15 changed files with 60 additions and 34 deletions
+6
View File
@@ -99,6 +99,12 @@ extern "C" JULIET_API void __cdecl GameUpdate(Juliet::GameData* params, [[maybe_
printf("Door is %s\n", door->IsOpened ? "Opened" : "Closed");
printf("Rock has %d health points\n", rock->Health);
// Summer at 2pm lighting
Vector3 sunDirection = { -0.2f, -0.9f, -0.3f };
Vector3 sunColor = { 1.0f, 0.95f, 0.85f };
float ambientIntensity = 0.4f;
SetGlobalLight(sunDirection, sunColor, ambientIntensity);
}
GameMode previousFrameMode = gGameState->Mode;