1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 16:19:54 +00:00
openmw-tes3mp/apps/openmw
AnyOldName3 162b25c180 Fix sunglare on Mesa
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.
2021-03-17 01:46:04 +00:00
..
mwbase Merge branch 'restore_caster' into 'master' 2021-03-05 21:07:29 +00:00
mwclass Fallback to default cell name for door destination 2021-02-10 22:13:04 +01:00
mwdialogue Also allow negative AI values in dialogue 2021-02-05 19:00:35 +01:00
mwgui Fix MyGUI log 2021-03-15 22:35:13 +00:00
mwinput Don't assume unmapped keycodes outside the extended ASCII range are unprintable 2021-02-25 21:37:21 +01:00
mwmechanics Register copied Spells with SpellList 2021-03-14 19:32:03 +01:00
mwphysics revert some blank lines 2021-03-14 18:02:48 +01:00
mwrender Fix sunglare on Mesa 2021-03-17 01:46:04 +00:00
mwscript Use moveObjectBy in SetPos 2021-03-13 09:53:21 +01:00
mwsound Restore compatibility with FFMpeg < 57.80.100 2021-03-08 19:29:34 +00:00
mwstate Merge branch 'restore_caster' into 'master' 2021-03-05 21:07:29 +00:00
mwworld allman style 2021-03-14 22:11:18 +01:00
android_main.cpp android: Switch to C++ 2019-04-28 18:21:31 -04:00
CMakeLists.txt Fix linking with -DOPENMW_USE_SYSTEM_OSG=ON -DOSG_STATIC=ON 2021-03-06 21:17:52 +00:00
doc.hpp Fixed more spelling mistakes 2016-12-15 13:09:40 +01:00
engine.cpp Fix frame rate limit 2021-02-12 00:03:11 +01:00
engine.hpp Implement instanced groundcover 2021-01-26 22:29:41 +04:00
main.cpp Implement instanced groundcover 2021-01-26 22:29:41 +04:00