1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-07 10:41:25 +00:00
openmw/components
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
..
bsa First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
bullethelpers Remove unused includes 2022-10-09 16:44:18 +02:00
compiler Replace mwscript program serialization into a vector with simple struct 2023-01-14 00:07:37 +01:00
config Move ensureUtf8Encoding to named namespace 2023-01-18 22:58:35 +01:00
contentselector Do not use deprecated implicit conversion 2023-01-15 20:23:18 +04:00
crashcatcher Apply clang-format to code base 2022-09-22 21:35:26 +03:00
debug Revert "Merge branch 'fix_macos_build' into 'master'" 2022-10-12 22:48:34 +01:00
detournavigator Navigator doesn't use RefId anymore 2023-01-21 18:39:57 +01:00
esm Merge branch 'Load_ESM4' into 'master' 2023-01-07 22:17:17 +00:00
esm3 Reverts Cell name to a string 2023-01-21 18:39:42 +01:00
esm3terrain Apply clang-format to code base 2022-09-22 21:35:26 +03:00
esm4 Applied review advice 2023-01-02 19:20:03 +01:00
esmloader Reverts Cell name to a string 2023-01-21 18:39:42 +01:00
fallback Apply clang-format to code base 2022-09-22 21:35:26 +03:00
files Join path components using path::operator/ instead of string::operator+ 2023-01-27 01:07:15 +01:00
fontloader Remove unused includes 2022-10-09 16:44:18 +02:00
fx expose more uniforms to postprocessing 2023-01-20 17:43:54 -08:00
interpreter Change Interpreter type aliases to be fixed size types 2023-01-14 00:09:01 +01:00
l10n Separate l10n manager from lua 2022-10-07 17:19:04 +02:00
loadinglistener Apply clang-format to code base 2022-09-22 21:35:26 +03:00
lua Apply clang-format to the previous commit 2023-01-20 23:44:12 +01:00
lua_ui Additional information in Lua profiler 2023-01-13 21:14:23 +01:00
misc Use worldspace coords in AiWanderStorage 2023-01-23 21:06:50 +01:00
myguiplatform Use OpenMW logging levels for MyGUI log (feature 7130) 2023-01-06 16:01:30 +04:00
navmeshtool Apply clang-format to code base 2022-09-22 21:35:26 +03:00
nif First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
nifbullet Don't use xkf if xnif is merely the base model (bug #5371) 2023-01-14 04:55:12 +03:00
nifosg Remove unused includes 2022-10-09 16:44:18 +02:00
platform Apply clang-format to code base 2022-09-22 21:35:26 +03:00
process Apply clang-format to code base 2022-09-22 21:35:26 +03:00
resource Clang-format 2023-01-05 01:40:36 +02:00
sceneutil Don't use FFP-friendly texture image units for shadow maps 2023-02-05 00:40:33 +00:00
sdlutil Apply clang-format to code base 2022-09-22 21:35:26 +03:00
serialization Apply clang-format to code base 2022-09-22 21:35:26 +03:00
settings First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
shader rain occlusion 2023-01-06 22:23:03 -08:00
sqlite3 Apply clang-format to code base 2022-09-22 21:35:26 +03:00
std140 Apply clang-format to code base 2022-09-22 21:35:26 +03:00
stereo Restore false-positive unused includes 2022-10-13 00:49:24 +01:00
terrain Remove unused includes 2022-10-09 16:44:18 +02:00
to_utf8 Applies review advice. 2023-01-04 12:22:16 +01:00
translation Apply clang-format to code base 2022-09-22 21:35:26 +03:00
version Apply clang-format to code base 2022-09-22 21:35:26 +03:00
vfs First pass with include-what-you-use 2022-10-09 10:39:43 +00:00
widgets Sort quests in journal by name (bug 7054) 2023-01-07 18:55:51 +04:00
CMakeLists.txt Join path components using path::operator/ instead of string::operator+ 2023-01-27 01:07:15 +01:00
doc.hpp second set of additional doxygen comments 2010-09-25 20:15:05 +02:00
windows.hpp Fix build on Windows 2022-04-25 00:25:46 +02:00