Browse Source

Water2 shader cannot compile when using FOG_EXP2

LOG2 and whiteCompliment are defined in common which is not currently included.
Maxime Rouyrre 7 years ago
parent
commit
899591d48f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/js/objects/Water2.js

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

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