From fd0832af98010b06d90c79bc3444bf192d55fd2c Mon Sep 17 00:00:00 2001 From: shadowislord Date: Tue, 24 Feb 2015 21:50:45 -0500 Subject: [PATCH] SinglePass Lighting: fix light color not being used for specular highlight --- .../src/main/resources/Common/MatDefs/Light/SPLighting.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 69fcfa848..9e3881028 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag @@ -221,8 +221,8 @@ void main(){ light.y = 1.0; #endif - gl_FragColor.rgb += DiffuseSum.rgb * lightColor.rgb * diffuseColor.rgb * vec3(light.x) + - SpecularSum2.rgb * specularColor.rgb * vec3(light.y); + gl_FragColor.rgb += DiffuseSum.rgb * lightColor.rgb * diffuseColor.rgb * vec3(light.x) + + SpecularSum2.rgb * lightColor.rgb * specularColor.rgb * vec3(light.y); } #endif