Commit Graph

12 Commits (master)

Author SHA1 Message Date
Andrei Kortunov 02444add2a Support for radial fog (feature #4708) 5 years ago
Capostrophic cf0c71c651 Water shader cleanup 5 years ago
AnyOldName3 556c9a3382 Add normal-offset shadow mapping to remove shadow acne (flicker) 6 years ago
AnyOldName3 a7e53df278 Move common shadow code to shared shadow shader headers 7 years ago
AnyOldName3 933ed77ef6 Fix water shader alignment issues noticed while removing tabs. 7 years ago
AnyOldName3 b25b356081 Sort out shader indentation 7 years ago
AnyOldName3 590531595b Create @foreach shader preprocessor macro in preparation for moving shadow setup out of shadermanager.cpp 7 years ago
AnyOldName3 715f29165b Dynamically adjust shaders to have the required number of shadow maps. 7 years ago
AnyOldName3 56fa33af66 Enable parallel split shadow maps 7 years ago
AnyOldName3 3f63ebce77 Theoretically, at least, fix everything (except hte sky issue which is resolved in another branch) 7 years ago
AnyOldName3 e15d461921 Add (potentially physically-flawed) shadow support to the water shader 7 years ago
scrawl e13eb625d3 New water WIP
Changes compared to old (Ogre) water:
- Uses depth-texture readback to handle the underwater fog in the water shader, instead of handling it in the object shader
- Different clipping mechanism (glClipPlane instead of a skewed viewing frustum)
- Fixed bug where the reflection camera would look strange when the viewer was very close to the water surface
- Toned down light scattering, made the waterColor a bit darker at night
- Fixed flipped water normals and strange resulting logic in the shader

Still to do: see comments...
9 years ago