소스 검색

SPLighting: fix issue #239

shadowislord 10 년 전
부모
커밋
a2fc435167
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      jme3-core/src/main/resources/Common/MatDefs/Light/SPLighting.frag

+ 1 - 0
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;