]> Pileus Git - grits/commitdiff
Lower contrast on global texture parameters
authorAndy Spencer <andy753421@gmail.com>
Sat, 22 Jan 2011 19:47:34 +0000 (19:47 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 22 Jan 2011 19:47:34 +0000 (19:47 +0000)
This looks slightly less `pretty' but makes it easier to see things.

src/grits-opengl.c

index 93a116528cbb37eddf0c471f25150a7879cc7f30..f4523d5ea3f3b3fb984f74eec6757793e343ae1a 100644 (file)
@@ -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);