mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:23:52 +00:00
commit
720700e957
2 changed files with 5 additions and 3 deletions
|
@ -49,7 +49,7 @@ uniform vec2 envMapLumaBias;
|
||||||
uniform mat2 bumpMapMatrix;
|
uniform mat2 bumpMapMatrix;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uniform bool simpleWater = false;
|
uniform bool simpleWater;
|
||||||
|
|
||||||
varying float euclideanDepth;
|
varying float euclideanDepth;
|
||||||
varying float linearDepth;
|
varying float linearDepth;
|
||||||
|
@ -181,6 +181,7 @@ void main()
|
||||||
matSpec = passColor.xyz;
|
matSpec = passColor.xyz;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (matSpec != vec3(0.0))
|
||||||
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos.xyz), shininess, matSpec) * shadowing;
|
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos.xyz), shininess, matSpec) * shadowing;
|
||||||
#if @radialFog
|
#if @radialFog
|
||||||
float depth = euclideanDepth;
|
float depth = euclideanDepth;
|
||||||
|
|
|
@ -90,6 +90,7 @@ void main()
|
||||||
matSpec = passColor.xyz;
|
matSpec = passColor.xyz;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (matSpec != vec3(0.0))
|
||||||
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos), shininess, matSpec) * shadowing;
|
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos), shininess, matSpec) * shadowing;
|
||||||
|
|
||||||
#if @radialFog
|
#if @radialFog
|
||||||
|
|
Loading…
Reference in a new issue