From a2fc4351673918e7bb2bdf9c9785c652852e177f Mon Sep 17 00:00:00 2001 From: shadowislord Date: Mon, 9 Mar 2015 22:22:55 -0400 Subject: [PATCH] SPLighting: fix issue #239 --- .../src/main/resources/Common/MatDefs/Light/SPLighting.frag | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag b/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag index 11834ffc0..5d207cf83 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag @@ -216,6 +216,7 @@ void main(){ light.y = 1.0; #endif + vec3 DiffuseSum2 = DiffuseSum.rgb; #ifdef COLORRAMP DiffuseSum2.rgb *= texture2D(m_ColorRamp, vec2(light.x, 0.0)).rgb; SpecularSum2.rgb *= texture2D(m_ColorRamp, vec2(light.y, 0.0)).rgb;