turrets now project a holographic targeting system onto the world; this will communicate their attack range as well as show some feedback as to how aware they are of you when youre just outside of attack range.
this test made it clear that i would need the hologram to be occluded by the wall, so it would not imply you were visible to the turret while hiding behind the wall.
(1/2)
so i am using render-to-texture to draw the scene from the turret's point of view, and sampling that texture in the particles to see if they are occluded or not.
however you can easily see in the rtt preview that there is a misalignment: the particle positions do not match up very well with the positions i am sampling in the rtt texture; there is a spherical distortion i have yet to fix.
(2/2)