18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 05:02:45 +01:00
Files
maszyna/gl
pwarszawski 0367a04f22 Glare of light points: occlusion queries of each light point of each model, read without waiting
The glare waited for the occlusion query of its point in the same frame (a conditional render with GL_QUERY_WAIT and the counts
written to a buffer for the shader), which drains the gpu at every lamp. Each light point of each model (the submodel and the
instance drawn) now has a pair of queries of its own in the main view: the samples of the point which passed the depth test, and
all of them drawn once more without it. Their results are read once the gpu has them, without waiting, and the glare is as
bright as the part of the point seen by them, a frame or two late. A point not drawn for more than two frames starts over unseen,
so a glare doesn't show through what came in front of it meanwhile. The walk, the shaders and the vulkan renderer are as they
were.
2026-11-16 16:44:44 +01:00
..
2026-10-11 13:22:33 +02:00