diff --git a/data/shaders/sunlight.frag b/data/shaders/sunlight.frag index faedb9d61..c6519c5d9 100644 --- a/data/shaders/sunlight.frag +++ b/data/shaders/sunlight.frag @@ -12,7 +12,6 @@ uniform mat4 invproj; in vec2 uv; out vec4 Diff; out vec4 Spec; -out vec4 SpecularMap; vec3 DecodeNormal(vec2 n) { @@ -58,5 +57,4 @@ void main() { Diff = vec4(NdotL * col, 1.); Spec = vec4(Specular * col, 1.); - SpecularMap = vec4(1.0); } diff --git a/data/shaders/sunlightshadow.frag b/data/shaders/sunlightshadow.frag index f192b297b..4fe0f9313 100644 --- a/data/shaders/sunlightshadow.frag +++ b/data/shaders/sunlightshadow.frag @@ -7,7 +7,6 @@ uniform sampler2DShadow shadowtex; uniform vec3 direction; uniform vec3 col; -uniform vec2 screen; uniform mat4 invproj; uniform mat4 shadowmat; //uniform int hasclouds; @@ -17,7 +16,6 @@ uniform mat4 shadowmat; in vec2 uv; out vec4 Diff; out vec4 Spec; -out vec4 SpecularMap; vec3 DecodeNormal(vec2 n) { @@ -81,7 +79,6 @@ void main() { Diff = vec4(factor * NdotL * col, 1.); Spec = vec4(factor * Specular * col, 1.); - SpecularMap = vec4(1.0); return; // float moved = (abs(dx) + abs(dy)) * 0.5;