소스 검색

WebGLDeferredRenderer: back to simpler light terms combine.

alteredq 12 년 전
부모
커밋
851f7038d3
1개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 10
      examples/js/ShaderDeferred.js

+ 1 - 10
examples/js/ShaderDeferred.js

@@ -40,16 +40,7 @@ THREE.DeferredShaderChunk = {
 	combine: [
 
 		"vec3 light = lightIntensity * lightColor;",
-
-		"if ( additiveSpecular < 0.0 ) {",
-
-			"gl_FragColor = vec4( light * ( albedo * diffuse + specular ), attenuation );",
-
-		"} else {",
-
-			"gl_FragColor = vec4( light * albedo * ( diffuse + specular ), attenuation );",
-
-		"}"
+		"gl_FragColor = vec4( light * ( albedo * diffuse + specular ), attenuation );",
 
 	].join("\n")