浏览代码

Water: Format

Mugen87 7 年之前
父节点
当前提交
619237e033
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      examples/js/objects/Water2.js

+ 4 - 4
examples/js/objects/Water2.js

@@ -255,7 +255,7 @@ THREE.Water.WaterShader = {
 		'	vec4 mvPosition =  viewMatrix * worldPosition;', // used in fog_vertex
 		'	gl_Position = projectionMatrix * mvPosition;',
 
-		' #include <fog_vertex>',
+		'	#include <fog_vertex>',
 
 		'}'
 
@@ -327,9 +327,9 @@ THREE.Water.WaterShader = {
 		// multiply water color with the mix of both textures
 		'	gl_FragColor = vec4( color, 1.0 ) * mix( refractColor, reflectColor, reflectance );',
 
-		'#include <tonemapping_fragment>',
-		'#include <encodings_fragment>',
-		'#include <fog_fragment>',
+		'	#include <tonemapping_fragment>',
+		'	#include <encodings_fragment>',
+		'	#include <fog_fragment>',
 
 		'}'