Merge pull request #2901 from Capostrophic/shaders

Minor shader fixes
pull/578/head
Chris Djali 5 years ago committed by GitHub
commit 720700e957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,7 +49,7 @@ uniform vec2 envMapLumaBias;
uniform mat2 bumpMapMatrix;
#endif
uniform bool simpleWater = false;
uniform bool simpleWater;
varying float euclideanDepth;
varying float linearDepth;
@ -181,6 +181,7 @@ void main()
matSpec = passColor.xyz;
#endif
if (matSpec != vec3(0.0))
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos.xyz), shininess, matSpec) * shadowing;
#if @radialFog
float depth = euclideanDepth;

@ -90,6 +90,7 @@ void main()
matSpec = passColor.xyz;
#endif
if (matSpec != vec3(0.0))
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos), shininess, matSpec) * shadowing;
#if @radialFog

Loading…
Cancel
Save