Explorar o código

Water2 shader cannot compile when using FOG_EXP2

LOG2 and whiteCompliment are defined in common which is not currently included.
Maxime Rouyrre %!s(int64=8) %!d(string=hai) anos
pai
achega
899591d48f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      examples/js/objects/Water2.js

+ 1 - 0
examples/js/objects/Water2.js

@@ -263,6 +263,7 @@ THREE.Water.WaterShader = {
 
 	fragmentShader: [
 
+		'#include <common>',
 		'#include <fog_pars_fragment>',
 
 		'uniform sampler2D tReflectionMap;',

粤ICP备19079148号