by dpJudas » Sun Nov 05, 2017 11:06 am
No, it clears the zbuffer before drawing it.
Before my fix it was drawing the weapon with coordinates in view space (eye's perspective) with the camera pointing straight ahead at (0,0,0). Now it is drawing it in world space with the camera positioned correctly in the world. Visually you can't tell the difference, but it meant that pixelpos wasn't getting the proper values it needed to project into light shadowmap space.
No, it clears the zbuffer before drawing it.
Before my fix it was drawing the weapon with coordinates in view space (eye's perspective) with the camera pointing straight ahead at (0,0,0). Now it is drawing it in world space with the camera positioned correctly in the world. Visually you can't tell the difference, but it meant that pixelpos wasn't getting the proper values it needed to project into light shadowmap space.