File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,16 @@ class PassMultipleTextureNode extends PassTextureNode {
126126
127127 clone ( ) {
128128
129- return new this . constructor ( this . passNode , this . textureName , this . previousTexture ) ;
129+ const newNode = new this . constructor ( this . passNode , this . textureName , this . previousTexture ) ;
130+ newNode . uvNode = this . uvNode ;
131+ newNode . levelNode = this . levelNode ;
132+ newNode . biasNode = this . biasNode ;
133+ newNode . sampler = this . sampler ;
134+ newNode . depthNode = this . depthNode ;
135+ newNode . compareNode = this . compareNode ;
136+ newNode . gradNode = this . gradNode ;
137+
138+ return newNode ;
130139
131140 }
132141
Original file line number Diff line number Diff line change @@ -154,10 +154,17 @@ class ReflectorNode extends TextureNode {
154154
155155 clone ( ) {
156156
157- const texture = new this . constructor ( this . reflectorNode ) ;
158- texture . _reflectorBaseNode = this . _reflectorBaseNode ;
159-
160- return texture ;
157+ const newNode = new this . constructor ( this . reflectorNode ) ;
158+ newNode . uvNode = this . uvNode ;
159+ newNode . levelNode = this . levelNode ;
160+ newNode . biasNode = this . biasNode ;
161+ newNode . sampler = this . sampler ;
162+ newNode . depthNode = this . depthNode ;
163+ newNode . compareNode = this . compareNode ;
164+ newNode . gradNode = this . gradNode ;
165+ newNode . _reflectorBaseNode = this . _reflectorBaseNode ;
166+
167+ return newNode ;
161168
162169 }
163170
You can’t perform that action at this time.
0 commit comments