mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 05:02:45 +01:00
ba44b0c0d5
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.