1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
AnyOldName3 0edc8fc77d Don't use FFP-friendly texture image units for shadow maps
This more-or-less gets rid of the shadow system's only depencency on FFP
stuff. All that remains is it using OSG cameras, which OSG provides a
uniform-based implementation of, too, which we can trivially migrate to.

This should mean we're not eating any of the ~8 FPP-friendly texture
units, which is good as Morrowind models can use all of those on their
(although they very rarely do), and instead use some of the ~160
shader-only texture image units. This just requires not calling
glEnable(GL_TEXTURE_2D), accomplished by changing
setTextureAttributeAndModes to setTextureAttribute.

Also changes from using glTexGen and its eye plane matrices to pass the
shadow space matrix for each light to explicit uniforms. Thankfully, the
maths was a simple combination of the valid region matrix and eye plane
matrix maths.

As of this commit, I believe this kills shadows in one eye for stereo
rendering.
2023-02-05 00:40:33 +00:00
..
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-10-09 16:44:18 +02:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-10-09 16:44:18 +02:00
2022-10-09 16:44:18 +02:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-10-09 16:44:18 +02:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-10-09 10:39:43 +00:00
2022-10-09 10:39:43 +00:00
2022-11-22 19:26:28 +00:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-25 12:31:56 +04:00
2022-09-22 21:35:26 +03:00
2022-10-09 16:44:18 +02:00
2022-10-09 10:39:43 +00:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00
2021-08-04 17:49:57 -07:00
2022-09-22 21:35:26 +03:00
2022-09-22 21:35:26 +03:00