Commit Graph

24 Commits (029eb1ade6338bb55589b2e2aeb95a2b7141eb69)

Author SHA1 Message Date
glassmancody.info cad0b151cb enable shaders path and dehardcode depth formats 3 years ago
glassmancody.info 70fac33940 initial reverse-z depth implementation 3 years ago
glassmancody.info c48eee4eee Clamp vertex lighting before interpolation
Fixes a regression in which pass lighting was clamped after being passed
to fragment shader. For correct FFP emulation, we need to clamp the result
in vertex shader. When clamping after interpolation, negative lights in
particular have a much more drastic effect.
4 years ago
glassmancody.info 08b5681284 Missed redundant formatting changes 4 years ago
glassmancody.info 43ac32921c Rewrite, support different lighting methods 4 years ago
glassmancody.info dda735c54a initial commit 4 years ago
Alexei Dobrohotov 09759c6620 Clean up shader lighting 4 years ago
Andrei Kortunov f30cb9f8bc Calculate viewNormal only when needed 5 years ago
Capostrophic 58d78fb126 Always pass the vertex color to the fragment shader 5 years ago
Andrei Kortunov 02444add2a Support for radial fog (feature #4708) 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 b25b356081 Sort out shader indentation 7 years ago
AnyOldName3 44b2cf2b7f Merge upstream. 7 years ago
Capostrophic b08d7b4a3b Use centroid interpolation for shader lighting (fixes #4143) 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 26ecf2088b Make shadows play nicely with per-vertex lighting 7 years ago
AnyOldName3 f50063402d Adjust shaders to support shadows 7 years ago
scrawl 157c11398d Add terrain parallax mapping 9 years ago
scrawl 0db7163363 Add specular mapping for terrain 9 years ago
scrawl 6000e48bba Add terrain shaders and normal map support
Textures with _n filename suffix are automatically recognized as terrain normal maps.
9 years ago