Explorar o código

:zap: fog rendering for ShaderTerrain

Makis Tracend %!s(int64=8) %!d(string=hai) anos
pai
achega
b396f66d42
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/js/ShaderTerrain.js

+ 2 - 2
examples/js/ShaderTerrain.js

@@ -237,10 +237,10 @@ THREE.ShaderTerrain = {
 
 				"outgoingLight += diffuseColor.xyz * ( totalDiffuseLight + ambientLightColor + totalSpecularLight );",
 
-				THREE.ShaderChunk[ "fog_fragment" ],
-
 				"gl_FragColor = vec4( outgoingLight, diffuseColor.a );",	// TODO, this should be pre-multiplied to allow for bright highlights on very transparent objects
 
+				THREE.ShaderChunk[ "fog_fragment" ],
+
 			"}"
 
 		].join( "\n" ),