Browse Source

Clone with offsetNode (#31849)

Shota Matsuda 4 months ago
parent
commit
3d9a8c95e3
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/nodes/display/PassNode.js
  2. 1 0
      src/nodes/utils/ReflectorNode.js

+ 1 - 0
src/nodes/display/PassNode.js

@@ -135,6 +135,7 @@ class PassMultipleTextureNode extends PassTextureNode {
 		newNode.depthNode = this.depthNode;
 		newNode.depthNode = this.depthNode;
 		newNode.compareNode = this.compareNode;
 		newNode.compareNode = this.compareNode;
 		newNode.gradNode = this.gradNode;
 		newNode.gradNode = this.gradNode;
+		newNode.offsetNode = this.offsetNode;
 
 
 		return newNode;
 		return newNode;
 
 

+ 1 - 0
src/nodes/utils/ReflectorNode.js

@@ -164,6 +164,7 @@ class ReflectorNode extends TextureNode {
 		newNode.depthNode = this.depthNode;
 		newNode.depthNode = this.depthNode;
 		newNode.compareNode = this.compareNode;
 		newNode.compareNode = this.compareNode;
 		newNode.gradNode = this.gradNode;
 		newNode.gradNode = this.gradNode;
+		newNode.offsetNode = this.offsetNode;
 		newNode._reflectorBaseNode = this._reflectorBaseNode;
 		newNode._reflectorBaseNode = this._reflectorBaseNode;
 
 
 		return newNode;
 		return newNode;

粤ICP备19079148号