You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
162b25c180
The sunglare works by comparing an occlusion query with depth testing on against one with depth testing off to determine if there's anything closer to the camera than the maximum depth buffer value. For the depth- tested query, the depth range is set from 1 to 1 so it's always drawn at the maximum distance. Originally, we had the depth function set to LESS, meaning that the query would always fail as 1 is not less than 1, but also glPolygonOffset was used to move the query by "the smallest value that is guaranteed to produce a resolvable offset for a given implementation" closer to the camera. While other driver and hardware combinations do that, Mesa seems to be clamping to the depth range, so still failing. Instead, it's simpler to just get rid of the polygon offset and change the depth test to LEQUAL as 1 *is* less than or equal to 1, but not than any other possible depth buffer value. |
4 years ago | |
---|---|---|
.. | ||
bsatool | 4 years ago | |
esmtool | 5 years ago | |
essimporter | 5 years ago | |
launcher | 4 years ago | |
mwiniimporter | 4 years ago | |
niftest | 4 years ago | |
opencs | 4 years ago | |
openmw | 4 years ago | |
openmw_test_suite | 4 years ago | |
wizard | 4 years ago | |
doc.hpp |