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 {
126
126
127
127
clone ( ) {
128
128
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 ;
130
139
131
140
}
132
141
Original file line number Diff line number Diff line change @@ -154,10 +154,17 @@ class ReflectorNode extends TextureNode {
154
154
155
155
clone ( ) {
156
156
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 ;
161
168
162
169
}
163
170
You can’t perform that action at this time.
0 commit comments