aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-31 14:19:53 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-31 14:19:53 +0000
commit33ab5dffb5574e8f208b7ec216475170c9863633 (patch)
tree097165e6ae79a565e73347cf0a9e0a58b3a67132 /src
parentc566f87fe5853e4f1596792652f203c7386c8699 (diff)
Match shader results to non-shader results
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@200 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src')
-rw-r--r--src/render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index 0d3f7fa..bd4ef60 100644
--- a/src/render.c
+++ b/src/render.c
@@ -213,6 +213,8 @@ RenderContext *render_setup(int width, int height, int disable_vbos, int disable
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
+
if ( r->fbos ) {
/* FBO for rendering swirlyness */
@@ -482,7 +484,7 @@ static void render_setup_lighting(Game *game) {
/* A fill-in light, only used on its own, to light the lander craft itself */
glLightfv(GL_LIGHT2, GL_AMBIENT, ambient); /* Initialised to zero above */
- pos[0] = -1.0; pos[1] = 0.8; pos[2] = 4.0; pos[3] = 0.0;
+ pos[0] = 0.0; pos[1] = 0.0; pos[2] = 4.0; pos[3] = 0.0;
glLightfv(GL_LIGHT2, GL_POSITION, pos);
diffuse[0] = 0.3; diffuse[1] = 0.3; diffuse[2] = 0.3; diffuse[3] = 1.0;
glLightfv(GL_LIGHT2, GL_DIFFUSE, diffuse);