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 năm trước cách đây
mục cha
commit
899591d48f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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号