Commit Graph

30 Commits (5566f2b06bf487e8d013aab1cb7b9d3a71bc63b0)

Author SHA1 Message Date
AnyOldName3 f8f6d63d4c Optimise groundcover lighting 3 years ago
Andrei Kortunov 5124e81348 Use linear interpolation instead of abrupt transitions for groundcover lighting 3 years ago
Andrei Kortunov 14cf0ce1dc Implement instanced groundcover 3 years ago
Alexei Dobrohotov 09759c6620 Clean up shader lighting 3 years ago
Capostrophic 91514aed5d Don't deliberately do redundant assignments 4 years ago
Capostrophic c0b322b264 Improve color mode handling in shaders 4 years ago
Capostrophic e49232074b Shader adjustments
Clamp directional per-vertex diffuse lighting
Simplify vectors
5 years ago
Capostrophic 02242ce66b Fix shader specular lighting (again) 5 years ago
AnyOldName3 5b2691e744 Actually use specular shininess parameter instead of hardcoded value. 5 years ago
AnyOldName3 f3fc888ab9 Merge branch 'osgshadow-test-vdsm-mesa-optimised-shader-2' into osgshadow-test-vdsm 5 years ago
AnyOldName3 e22ab64ebf Fix typo in lighting.glsl 6 years ago
AnyOldName3 ce15369bbd Convert colorMode shader define to a uniform 6 years ago
AnyOldName3 1098bd2467 Optimise lighting.glsl for Mesa users. 6 years ago
AnyOldName3 b25b356081 Sort out shader indentation 6 years ago
AnyOldName3 44b2cf2b7f Merge upstream. 6 years ago
bret curtis 4890ecd357 remove native GLESv* support, as it never worked; make things less complicated as result, fixed lighting.glsl to work with gl2es thanks to ptitSeb 6 years ago
AnyOldName3 e0ce284272 Fix the same shader preprocessor variable issue for the third time now 7 years ago
AnyOldName3 2b78fb436d Fix issue with shader preprocessor variables 7 years ago
AnyOldName3 ebd3dcf2b3 Remove unnecessary preprocessor variable in shaders 7 years ago
AnyOldName3 e33bec97be Tidy up the mess I made of lighting.glsl a bit by removing two single-line functions that are only ever called in one location. 7 years ago
AnyOldName3 26ecf2088b Make shadows play nicely with per-vertex lighting 7 years ago
AnyOldName3 c67b3267fb Stop shadowing ambient lighting from the light casting a shadow when using per-pixel lighting. 7 years ago
AnyOldName3 f50063402d Adjust shaders to support shadows 7 years ago
scrawl 45ae8d5ffa Add support for GL_AMBIENT colorMode to shaders as required by particle systems 7 years ago
scrawl 77bc807305 Attenuate the light ambient in lighting.glsl (Fixes #3597) 8 years ago
scrawl 900b522d13 Rename viewPos to viewDirection 8 years ago
scrawl f01e8a6950 Add specular mapping for objects 8 years ago
scrawl a73512afb7 Add shader settings to settings.cfg 8 years ago
scrawl 18e80d5627 Add per-pixel lighting code 8 years ago
scrawl 1223bca3d4 Move doLighting to separate file 8 years ago