1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Merge pull request #2914 from akortunov/master

Fix typos in shaders
This commit is contained in:
Andrei Kortunov 2020-06-17 10:14:52 +04:00 committed by GitHub
commit 50d692a097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ void main()
if (matSpec != vec3(0.0)) if (matSpec != vec3(0.0))
{ {
#if (!normalMap && !@parallax && !forcePPL) #if (!@normalMap && !@parallax && !@forcePPL)
vec3 viewNormal = gl_NormalMatrix * normalize(passNormal); vec3 viewNormal = gl_NormalMatrix * normalize(passNormal);
#endif #endif
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;

View file

@ -96,7 +96,7 @@ void main()
if (matSpec != vec3(0.0)) if (matSpec != vec3(0.0))
{ {
#if (!normalMap && !@parallax && !forcePPL) #if (!@normalMap && !@parallax && !@forcePPL)
vec3 viewNormal = gl_NormalMatrix * normalize(passNormal); vec3 viewNormal = gl_NormalMatrix * normalize(passNormal);
#endif #endif
gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos), shininess, matSpec) * shadowing; gl_FragData[0].xyz += getSpecular(normalize(viewNormal), normalize(passViewPos), shininess, matSpec) * shadowing;