From 4c51717c44a5642bfeed9fb7835921c082376e3d Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 7 Apr 2007 01:37:30 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@937 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendergl.cpp | 5 +++-- source/src/rendermodel.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index 0d4a278a..949b5ca4 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -258,7 +258,8 @@ GLuint reflecttex = 0, refracttex = 0; int reflectlastsize = 0; VARP(reflectres, 6, 7, 10); -VAR(reflectclip, 0, 3, 100); +VAR(reflectclip, 0, 0, 100); +VAR(refractclip, 0, 3, 100); VARP(waterreflect, 0, 1, 1); VARP(waterrefract, 0, 0, 1); @@ -311,7 +312,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract) } GLfloat clipmat[16]; - genclipmatrix(0, refract ? -1 : 1, 0, refract ? 0.1f*reflectclip+hf : 0.1f*reflectclip-hf, clipmat); + genclipmatrix(0, refract ? -1 : 1, 0, refract ? 0.1f*refractclip+hf : 0.1f*reflectclip-hf, clipmat); glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadMatrixf(clipmat); diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 852c91f4..39309751 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -115,7 +115,7 @@ void rendermodel(char *mdl, int anim, int tex, float rad, float x, float y, floa light.y = s->g/ll+of; light.z = s->b/ll+of; - if(dynshadow && m->hasshadows()) + if(dynshadow && m->hasshadows() && !reflecting) { vec center(x, z, s->floor); if(s->type==FHF) center.z -= s->vdelta/4.0f;