Added way to set global light from game.
+ Some clean up in the mesh renderer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user