18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 05:02:45 +01:00
Files
maszyna/rendering/common
pwarszawski ba44b0c0d5 Draw the glare of a FreeSpotLight after its point
The glare of a light point is drawn without the depth test, conditioned
on the occlusion query of the point. That query was issued only after
the glare and is kept on the TSubModel, which every instance of a model
shares, so the glare of one lamp used what the query saw for whichever
instance drew that submodel last (earlier in the frame or in the last
frame): glares showed through walls and blinked while the camera moved.

The point (with its query) is now drawn first and the glare after it,
so the conditional render of the opengl renderer uses the query of this
very point of this instance in this frame. The glare is drawn only when
the point was, which already held, as both need the viewer inside the
visibility cone. The vulkan renderer keeps using the results of the
last frame.
2026-11-14 14:30:51 +01:00
..
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-11-09 20:58:02 +01:00
2026-10-26 15:51:56 +01:00