shadow culling based on line of sight for players

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2577 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-14 00:36:01 +00:00
parent ec6ae4c59f
commit 25261e3ac2
+7
View File
@@ -324,6 +324,13 @@ void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, fl
if(isoccluded(camera1->o.x, camera1->o.y, o.x-rad, o.y-rad, rad*2)) return;
}
if(stenciling && d && !raycubelos(camera1->o, o, d->radius))
{
vec target(o);
target.z += d->dyneyeheight();
if(!raycubelos(camera1->o, target, d->radius)) return;
}
int varseed = 0;
if(d) switch(anim&ANIM_INDEX)
{