File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,10 +151,6 @@ Material.prototype = {
151151 data . uuid = this . uuid ;
152152 data . type = this . type ;
153153
154- data . depthFunc = this . depthFunc ;
155- data . depthTest = this . depthTest ;
156- data . depthWrite = this . depthWrite ;
157-
158154 if ( this . name !== '' ) data . name = this . name ;
159155
160156 if ( ( this . color && this . color . isColor ) ) data . color = this . color . getHex ( ) ;
@@ -211,6 +207,11 @@ Material.prototype = {
211207
212208 if ( this . opacity < 1 ) data . opacity = this . opacity ;
213209 if ( this . transparent === true ) data . transparent = this . transparent ;
210+
211+ data . depthFunc = this . depthFunc ;
212+ data . depthTest = this . depthTest ;
213+ data . depthWrite = this . depthWrite ;
214+
214215 if ( this . alphaTest > 0 ) data . alphaTest = this . alphaTest ;
215216 if ( this . premultipliedAlpha === true ) data . premultipliedAlpha = this . premultipliedAlpha ;
216217 if ( this . wireframe === true ) data . wireframe = this . wireframe ;
You can’t perform that action at this time.
0 commit comments