[grits] Lower contrast on global texture parameters
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grits] Lower contrast on global texture parameters
- Date: Mon, 24 Jan 2011 05:29:44 +0000 (UTC)
commit 983941575d624518e5562eda7c739ec487ea730b
Author: Andy Spencer <andy753421 gmail com>
Date: Sat Jan 22 19:47:34 2011 +0000
Lower contrast on global texture parameters
This looks slightly less `pretty' but makes it easier to see things.
src/grits-opengl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]