re-check line-of-sight depth readout from the graphics driver

- manually intersect line-of-sight with all map geometry
- shorten sight vector if necessary
This commit is contained in:
ac-stef
2017-05-28 00:37:13 +02:00
parent c97461a0f5
commit 4e77b91c0e
6 changed files with 209 additions and 13 deletions
+1
View File
@@ -1004,6 +1004,7 @@ void readdepth(int w, int h, vec &pos)
vec4 world;
invmvpmatrix.transform(screen, world);
pos = vec(world.x, world.y, world.z).div(world.w);
intersectgeometry(camera1->o, pos);
}
VARP(ignoreoverride_nowaterreflect, 0, 0, 1);