procedural-3d-engine/examples/occlusionquery
Ricardo Garcia afc1663f85 Fix occlusion query example visual glitch
In the occlusion query example, uniform buffers containing visibility
flags are only updated when the view changes, and visibility information
is calculated from occlusion queries coming from the previous frame.

This means a quick mouse movement can produce a visual glitch by which
the number of visible fragments becomes zero (and this is correctly
reflected in the UI overlay) but the color of the model remains
unchanged, or vice versa, until the view is changed again with the
mouse.

To fix this, update uniform buffers before preparing every frame as part
of the draw() method.
2019-03-20 14:15:44 +01:00
..
occlusionquery.cpp Fix occlusion query example visual glitch 2019-03-20 14:15:44 +01:00