From e0ce28427213177c87b092646592ffc32dbef578 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Sun, 8 Oct 2017 01:34:54 +0100 Subject: [PATCH] Fix the same shader preprocessor variable issue for the third time now --- files/shaders/lighting.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/shaders/lighting.glsl b/files/shaders/lighting.glsl index 5d59754ec..09b78b596 100644 --- a/files/shaders/lighting.glsl +++ b/files/shaders/lighting.glsl @@ -34,7 +34,7 @@ vec4 doLighting(vec3 viewPos, vec3 viewNormal, vec4 vertexColor, out vec3 shadow vec3 diffuseLight, ambientLight; perLight(ambientLight, diffuseLight, 0, viewPos, viewNormal, diffuse, ambient); -#ifdef FRAGMENT +#if PER_PIXEL_LIGHTING lightResult.xyz += ambientLight + diffuseLight * shadowing; #else shadowDiffuse = diffuseLight;