]> 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)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 3 Apr 2018 13:36:32 +0000 (06:36 -0700)
commit89b8278762db0ca3e7de1b9f9ac70bb93f1ac6c7
tree28bfa9ee3f86141278544e538082047d58aa9ba1
parent7bbf90e362582921fa1c13007d2654bf0e8764da
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
::stable-branch::merge=8ab339588b127e88e27bfa08f6eccbf9400b51f9
gl_rmain.c
model_brush.c
model_shared.h
render.h
server.h
snd_main.c
sv_main.c