SPLighting: fix issue #239

experimental
shadowislord 10 years ago
parent 8466b25c6b
commit a2fc435167
  1. 1
      jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag

@ -216,6 +216,7 @@ void main(){
light.y = 1.0; light.y = 1.0;
#endif #endif
vec3 DiffuseSum2 = DiffuseSum.rgb;
#ifdef COLORRAMP #ifdef COLORRAMP
DiffuseSum2.rgb *= texture2D(m_ColorRamp, vec2(light.x, 0.0)).rgb; DiffuseSum2.rgb *= texture2D(m_ColorRamp, vec2(light.x, 0.0)).rgb;
SpecularSum2.rgb *= texture2D(m_ColorRamp, vec2(light.y, 0.0)).rgb; SpecularSum2.rgb *= texture2D(m_ColorRamp, vec2(light.y, 0.0)).rgb;

Loading…
Cancel
Save