diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-21 17:39:53 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-21 17:39:53 +0000 |
commit | bd5a10143bcbab9eaf69fc3c26d8c02dcec5e4ef (patch) | |
tree | b96b820fefb8a8c0b687b06500ee5ac3d499c1c9 /src/render.c | |
parent | cf9fa9e57abc1a553ec1f2d473806fae6eca7659 (diff) |
Increase background light a little
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@98 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index 242a058..d852312 100644 --- a/src/render.c +++ b/src/render.c @@ -518,7 +518,7 @@ static void render_setup_lighting(Game *game) { glEnable(GL_LIGHTING); /* Set a very dull background */ - ambient[0] = 0.01; ambient[1] = 0.01; ambient[2] = 0.01; ambient[3] = 1.0; + ambient[0] = 0.07; ambient[1] = 0.07; ambient[2] = 0.07; ambient[3] = 1.0; glLightModelfv(GL_LIGHT_MODEL_AMBIENT, ambient); /* All lights have zero ambient (shader will ignore them) */ @@ -552,7 +552,7 @@ static void render_setup_lighting(Game *game) { glLightfv(GL_LIGHT1, GL_AMBIENT, ambient); /* Initialised to zero above */ pos[0] = -1.0; pos[1] = 0.8; pos[2] = 4.0; pos[3] = 0.0; glLightfv(GL_LIGHT1, GL_POSITION, pos); - diffuse[0] = 0.02; diffuse[1] = 0.02; diffuse[2] = 0.02; diffuse[3] = 1.0; + diffuse[0] = 0.05; diffuse[1] = 0.05; diffuse[2] = 0.05; diffuse[3] = 1.0; glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse); specular[0] = 0.0; specular[1] = 0.0; specular[2] = 0.0; specular[3] = 1.0; glLightfv(GL_LIGHT1, GL_SPECULAR, specular); |