2
0
Эх сурвалжийг харах

WebGLDeferredRenderer: back to simpler light terms combine.

alteredq 12 жил өмнө
parent
commit
851f7038d3

+ 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")