summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-02-13 10:28:20 -0800
committer3gg <3gg@shellblade.net>2026-02-13 10:28:20 -0800
commit580f98de6babae2bcc98151c080eeaa7c155abe1 (patch)
treed33715213eecc1bb6b110e9fd66fa83aba76441b
parentabacb43bd5914ec3b98ee48b46216c5329203693 (diff)
Ambient lighting
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 260d215..cf6bd26 100644
--- a/src/main.c
+++ b/src/main.c
@@ -331,6 +331,7 @@ static bool Render(State* state) {
331 }; 331 };
332 sgTrianglesIndexed(state->gfx, 3, indices, positions, texcoords);*/ 332 sgTrianglesIndexed(state->gfx, 3, indices, positions, texcoords);*/
333 sgLighting(state->gfx); 333 sgLighting(state->gfx);
334 sgAmbient(state->gfx, (sgVec3){1,1,1});
334 sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight); 335 sgGammaInv(state->gfx, sgColourBuffer(state->gfx), BufferWidth, BufferHeight);
335 sgPresent(state->gfx, WindowDims, window_surface->pixels); 336 sgPresent(state->gfx, WindowDims, window_surface->pixels);
336 337