1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 16:29:55 +00:00
openmw/files
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
..
data Improve duration tooltip 2023-01-22 14:32:47 +04:00
launcher Rework launcher UI 2023-01-15 12:36:08 +04:00
lua_api Lua commands to create/move/remove objects; consistent handling of disabled objects (#6726, #6893) 2023-01-22 00:08:21 +01:00
mac Adding CFBundleIdentifier to OpenMW's Info.plist file for Macs 2018-06-12 22:18:06 -05:00
opencs Remove old, unused OpenMW-CS icons and their source files. 2023-01-16 16:08:41 +01:00
shaders Don't use FFP-friendly texture image units for shadow maps 2023-02-05 00:40:33 +00:00
ui Rework launcher UI 2023-01-15 12:36:08 +04:00
windows fix win32 app manifest copy-paste error 2018-11-11 21:46:15 +01:00
wizard Implement #3983 - Add page to the wizard with links to buy morrowind 2021-04-08 20:57:50 +00:00
CMakeLists.txt Fix MacOS build 2022-07-18 23:37:37 +04:00
gamecontrollerdb.txt Update SDL controller mappings from upstream 2019-04-04 22:28:55 +03:00
openmw-cs.cfg changed name of openmw-cs user settings file 2015-12-15 14:51:25 +01:00
openmw.appdata.xml Fix the screenshot URLs in the appstream XML 2022-07-02 19:49:25 +02:00
openmw.bmp Some improvments for windows builds and installer 2012-04-19 14:58:27 +02:00
openmw.cfg Improve built-in default fonts 2022-08-30 07:54:20 +00:00
openmw.cfg.local Improve built-in default fonts 2022-08-30 07:54:20 +00:00
org.openmw.cs.desktop add launchable type; rename files to be conform to freedesktop.org and debian standards 2020-03-27 08:12:06 +01:00
org.openmw.launcher.desktop add launchable type; rename files to be conform to freedesktop.org and debian standards 2020-03-27 08:12:06 +01:00
settings-default.cfg add sfc setting, only add to subgraph when enabled 2023-01-08 11:55:33 -08:00
version.in Move OpenMW version information to a textfile instead of compiling it in 2015-07-18 03:09:04 +02:00