From e22ab64ebf4a791c2b27228844b22ae771be34b6 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Mon, 22 Oct 2018 17:35:01 +0100 Subject: [PATCH] Fix typo in lighting.glsl --- 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 ff6ee9419..5c21b7bee 100644 --- a/files/shaders/lighting.glsl +++ b/files/shaders/lighting.glsl @@ -27,7 +27,7 @@ vec4 doLighting(vec3 viewPos, vec3 viewNormal, vec4 vertexColor, out vec3 shadow if (colorMode == 3) { diffuse = gl_FrontMaterial.diffuse; - ambient - vertexColor.xyz; + ambient = vertexColor.xyz; } else if (colorMode == 2) {