From: Andy Spencer Date: Sat, 22 Jan 2011 19:47:34 +0000 (+0000) Subject: Lower contrast on global texture parameters X-Git-Tag: v0.5~34 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=983941575d624518e5562eda7c739ec487ea730b Lower contrast on global texture parameters This looks slightly less `pretty' but makes it easier to see things. --- diff --git a/src/grits-opengl.c b/src/grits-opengl.c index 93a1165..f4523d5 100644 --- a/src/grits-opengl.c +++ b/src/grits-opengl.c @@ -67,7 +67,7 @@ static void _set_visuals(GritsOpenGL *opengl) float light_diffuse[] = {2.0f, 2.0f, 2.0f, 1.0f}; #else float light_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f}; - float light_diffuse[] = {5.0f, 5.0f, 5.0f, 1.0f}; + float light_diffuse[] = {0.8f, 0.8f, 0.8f, 1.0f}; #endif float light_position[] = {-13*EARTH_R, 1*EARTH_R, 3*EARTH_R, 1.0f}; glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient); @@ -76,9 +76,9 @@ static void _set_visuals(GritsOpenGL *opengl) glEnable(GL_LIGHT0); glEnable(GL_LIGHTING); - float material_ambient[] = {0.2, 0.2, 0.2, 1.0}; - float material_diffuse[] = {0.8, 0.8, 0.8, 1.0}; - float material_specular[] = {0.1, 0.1, 0.1, 1.0}; + float material_ambient[] = {1.0, 1.0, 1.0, 1.0}; + float material_diffuse[] = {1.0, 1.0, 1.0, 1.0}; + float material_specular[] = {0.0, 0.0, 0.0, 1.0}; float material_emission[] = {0.0, 0.0, 0.0, 1.0}; glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, material_ambient); glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, material_diffuse);