Add gamma correction, change illumination values

This commit is contained in:
PedroEdiaz
2024-11-26 23:49:02 -06:00
parent e4a4a8c603
commit a8ae6aaef6
2 changed files with 23 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
void set_clean_color_context(unsigned char r, unsigned char g, unsigned char b)
{
glEnable(GL_DEPTH_TEST);
glEnable(GL_FRAMEBUFFER_SRGB);
glClearColor((float)r / 0xff, (float)g / 0xff, (float)b / 0xff, 1.0);
}