Commit Graph

26 Commits (3e87c3500555e5d6cdd94bace39a5b4bcea0eab3)

Author SHA1 Message Date
Capostrophic 91514aed5d Don't deliberately do redundant assignments 5 years ago
Capostrophic c0b322b264 Improve color mode handling in shaders 5 years ago
Capostrophic e49232074b Shader adjustments
Clamp directional per-vertex diffuse lighting
Simplify vectors
6 years ago
Capostrophic 02242ce66b Fix shader specular lighting (again) 6 years ago
AnyOldName3 5b2691e744 Actually use specular shininess parameter instead of hardcoded value. 6 years ago
AnyOldName3 f3fc888ab9 Merge branch 'osgshadow-test-vdsm-mesa-optimised-shader-2' into osgshadow-test-vdsm 6 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 7 years ago
AnyOldName3 44b2cf2b7f Merge upstream. 7 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 7 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 8 years ago
scrawl 77bc807305 Attenuate the light ambient in lighting.glsl (Fixes #3597) 8 years ago
scrawl 900b522d13 Rename viewPos to viewDirection 9 years ago
scrawl f01e8a6950 Add specular mapping for objects 9 years ago
scrawl a73512afb7 Add shader settings to settings.cfg 9 years ago
scrawl 18e80d5627 Add per-pixel lighting code 9 years ago
scrawl 1223bca3d4 Move doLighting to separate file 9 years ago