1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 06:39:40 +00:00
openmw-tes3mp/apps/openmw/mwrender
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
..
.gitignore directory structure reorganisation (still missing the mangle stuff) 2010-06-25 22:28:59 +02:00
actoranimation.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
actoranimation.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
actorspaths.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
actorspaths.hpp Add command and settings option to enable actors paths render 2018-10-13 22:16:32 +03:00
animation.cpp Move base_anim settings to settings-default.cfg 2021-01-27 13:41:02 +02:00
animation.hpp Separate keyframes logic to provide basis for osgAnimation integration. 2020-11-18 22:48:47 +02:00
bulletdebugdraw.cpp The debug drawer rely on Bullet to determines the vertices of collision 2021-01-01 17:47:12 +01:00
bulletdebugdraw.hpp The debug drawer rely on Bullet to determines the vertices of collision 2021-01-01 17:47:12 +01:00
camera.cpp Fix minor bug: mSmoothedSpeed is not updating in first person mode, that leads to an incorrect value after switching to first person mode and back. 2020-12-24 03:39:59 +01:00
camera.hpp Fix some issues, found by CoverityScan 2020-10-28 18:02:31 +04:00
cell.hpp implemented take action 2010-08-07 20:25:17 +02:00
characterpreview.cpp Merge branch 'alpha-meddling' into 'master' 2021-03-13 08:13:19 +00:00
characterpreview.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
creatureanimation.cpp Move base_anim settings to settings-default.cfg 2021-01-27 13:41:02 +02:00
creatureanimation.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
effectmanager.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
effectmanager.hpp Revert "Merged pull request #1573" 2018-05-26 11:39:30 +00:00
fogmanager.cpp Downgrade FOV-dependent view distance factor to a recommendation 2021-01-11 06:53:23 +03:00
fogmanager.hpp Add a FogManager 2020-06-07 15:51:03 +04:00
globalmap.cpp Code cleanup 2021-01-09 14:41:10 +04:00
globalmap.hpp fix #5176 2019-10-18 13:37:00 +00:00
groundcover.cpp Put groundcover alphafunc where shader visitor can see it 2021-03-12 17:21:36 +00:00
groundcover.hpp Implement instanced groundcover 2021-01-26 22:29:41 +04:00
landmanager.cpp Implement generic caching system 2019-03-14 09:10:19 +04:00
landmanager.hpp Fix defines names 2020-12-28 21:11:58 +04:00
localmap.cpp Refactor out duplicated RTT setup code 2021-02-26 19:01:27 +00:00
localmap.hpp Revert "Store raw data about fog of war instead of RGBA images" 2019-10-30 14:48:44 +01:00
navmesh.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
navmesh.hpp Get navmesh to update osg node only if rendering is enabled 2019-01-20 21:09:06 +03:00
npcanimation.cpp Move base_anim settings to settings-default.cfg 2021-01-27 13:41:02 +02:00
npcanimation.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
objectpaging.cpp Remove redundant formatting changes 2021-01-26 22:29:41 +04:00
objectpaging.hpp Fix defines names 2020-12-28 21:11:58 +04:00
objects.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
objects.hpp Remove redundant includes 2019-02-23 08:02:12 +04:00
pathgrid.cpp Add pathgrid to navmesh as off mesh connection 2020-06-12 21:04:02 +02:00
pathgrid.hpp Remove redundant includes 2019-02-23 08:02:12 +04:00
recastmesh.cpp as it says; revert vismask and uncomplicate openmw 2020-04-20 20:57:38 +02:00
recastmesh.hpp Support recast mesh rendering 2020-03-14 09:38:24 +01:00
renderbin.hpp Implement a custom RenderBin for first person models (Fixes #1612) 2015-10-19 22:17:04 +02:00
renderinginterface.hpp Dead code removal 2015-04-21 23:40:10 +02:00
renderingmanager.cpp Merge branch 'alpha-meddling' into 'master' 2021-03-13 08:13:19 +00:00
renderingmanager.hpp Implement instanced groundcover 2021-01-26 22:29:41 +04:00
rendermode.hpp Support recast mesh rendering 2020-03-14 09:38:24 +01:00
ripplesimulation.cpp Fix TSAN warnings for ripples emitter 2020-07-11 13:29:30 +02:00
ripplesimulation.hpp Make fallback map static to simplify constructors 2019-03-29 15:30:49 +04:00
rotatecontroller.cpp Don't compute the world matrix multiple times 2016-02-22 18:58:19 +01:00
rotatecontroller.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
screenshotmanager.cpp Move screenshots handling to the separate class 2021-01-09 10:44:33 +04:00
screenshotmanager.hpp Move screenshots handling to the separate class 2021-01-09 10:44:33 +04:00
sky.cpp Fix sunglare on Mesa 2021-03-17 01:46:04 +00:00
sky.hpp Give meaningful name to the mEffectFade 2021-03-10 19:10:17 +04:00
terrainstorage.cpp Reject empty quad tree nodes at the cell level without land data 2019-03-18 10:27:29 +04:00
terrainstorage.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
util.cpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
util.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00
viewovershoulder.cpp Tune algorithm of "auto switch shoulder" 2020-08-05 01:01:51 +02:00
viewovershoulder.hpp Refactoring. Move all code related to 'view over shoulder' to a separate file. 2020-07-12 20:51:38 +02:00
vismask.hpp Implement instanced groundcover 2021-01-26 22:29:41 +04:00
water.cpp Merge branch 'alpha-meddling' into 'master' 2021-03-13 08:13:19 +00:00
water.hpp Double-buffer shader water stateset (bug #5026) 2021-03-08 10:58:51 +04:00
weaponanimation.cpp Reset attached arrow in the beginning of unequipping animation 2020-08-28 15:53:30 +04:00
weaponanimation.hpp Mark overrided methods by override keyword 2020-10-16 22:18:54 +04:00