diff options
| author | 3gg <3gg@shellblade.net> | 2026-02-13 10:28:20 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-02-13 10:28:20 -0800 |
| commit | 580f98de6babae2bcc98151c080eeaa7c155abe1 (patch) | |
| tree | d33715213eecc1bb6b110e9fd66fa83aba76441b /src | |
| parent | abacb43bd5914ec3b98ee48b46216c5329203693 (diff) | |
Ambient lighting
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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 | ||
