소스 검색

SinglePass Lighting: fix light color not being used for specular highlight

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

+ 2 - 2
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