浏览代码

Water: Fix typo

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

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

@@ -147,7 +147,7 @@ THREE.Water = function ( width, height, options ) {
 		config.value.x += flowSpeed * delta; // flowMapOffset0
 		config.value.x += flowSpeed * delta; // flowMapOffset0
 		config.value.y = config.value.x + halfCycle; // flowMapOffset1
 		config.value.y = config.value.x + halfCycle; // flowMapOffset1
 
 
-		// Important: The distance between offsets shold be always the value of "halfCycle".
+		// Important: The distance between offsets should be always the value of "halfCycle".
 		// Moreover, both offsets should be in the range of [ 0, cycle ].
 		// Moreover, both offsets should be in the range of [ 0, cycle ].
 		// This approach ensures a smooth water flow and avoids "reset" effects.
 		// This approach ensures a smooth water flow and avoids "reset" effects.