mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 15:02:56 +00:00
In the OpenGL fixed function pipeline, alpha testing should happen before depth testing and writing. Since the tests are basically boolean ANDs, we can reorder them however we like to improve performance and as such, we perform early depth testing and delay the more expensive alpha testing until we know which pixels to test. However, we were already writing to the depth buffer during the depth test, even if the alpha test fails later on. Depth writing should only happen if depth testing _and_ writing is enabled. This change introduces depth staging, deferring the depth write until we are absolutely sure we should do so. |
||
---|---|---|
.. | ||
Clipper.cpp | ||
Clipper.h | ||
CMakeLists.txt | ||
DepthBuffer.cpp | ||
DepthBuffer.h | ||
Device.cpp | ||
Device.h | ||
DeviceInfo.h | ||
Enums.h | ||
Image.cpp | ||
Image.h | ||
ImageDataLayout.h | ||
ImageFormat.h | ||
Sampler.cpp | ||
Sampler.h | ||
Triangle.h | ||
Vertex.h |