Browse Source

Merge pull request #10251 from tracend/dev

:zap: fog rendering for ShaderTerrain
Mr.doob 8 years ago
parent
commit
51e96d21e5
1 changed files with 2 additions and 2 deletions
  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" ),