mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 09:45:32 +00:00
Fix the same shader preprocessor variable issue for the third time now
This commit is contained in:
parent
2b78fb436d
commit
e0ce284272
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ vec4 doLighting(vec3 viewPos, vec3 viewNormal, vec4 vertexColor, out vec3 shadow
|
||||||
|
|
||||||
vec3 diffuseLight, ambientLight;
|
vec3 diffuseLight, ambientLight;
|
||||||
perLight(ambientLight, diffuseLight, 0, viewPos, viewNormal, diffuse, ambient);
|
perLight(ambientLight, diffuseLight, 0, viewPos, viewNormal, diffuse, ambient);
|
||||||
#ifdef FRAGMENT
|
#if PER_PIXEL_LIGHTING
|
||||||
lightResult.xyz += ambientLight + diffuseLight * shadowing;
|
lightResult.xyz += ambientLight + diffuseLight * shadowing;
|
||||||
#else
|
#else
|
||||||
shadowDiffuse = diffuseLight;
|
shadowDiffuse = diffuseLight;
|
||||||
|
|
Loading…
Reference in a new issue