]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Rework R_CanSeeBox a bit to support an eyejitter feature, and make it available throu...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2018 19:24:42 +0000 (19:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2018 19:24:42 +0000 (19:24 +0000)
commit8ab339588b127e88e27bfa08f6eccbf9400b51f9
tree28bfa9ee3f86141278544e538082047d58aa9ba1
parent445f3df93c496079a8d74fb3213bad5b5cc277ae
Rework R_CanSeeBox a bit to support an eyejitter feature, and make it available throughout the renderer.

Make TraceLineOfSight check if the trace endpos is within a box, not just if fraction is 1 - this makes it much more likely to say an object is visible when the object overlaps walls and other obstacles as the rays only need to reach the box, it doesn't matter much where it goes inside the box.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12348 d7cf8633-e32d-0410-b094-e92efae38249
gl_rmain.c
model_brush.c
model_shared.h
render.h
server.h
snd_main.c
sv_main.c