浏览代码

Water2Mesh: Simplify `flowMap` setup. (#33540)

Michael Herzog 2 月之前
父节点
当前提交
477da6140b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/objects/Water2Mesh.js

+ 1 - 1
examples/jsm/objects/Water2Mesh.js

@@ -66,7 +66,7 @@ class WaterNode extends TempNode {
 
 		this.normalMap0 = texture( options.normalMap0 );
 		this.normalMap1 = texture( options.normalMap1 );
-		this.flowMap = texture( options.flowMap !== undefined ? options.flowMap : null );
+		this.flowMap = texture( options.flowMap );
 
 		this.color = uniform( options.color !== undefined ? new Color( options.color ) : new Color( 0xffffff ) );
 		this.flowDirection = uniform( options.flowDirection !== undefined ? options.flowDirection : new Vector2( 1, 0 ) );

粤ICP备19079148号