@@ -320,10 +320,10 @@ class Material extends EventDispatcher {
320
320
321
321
if ( this . blending !== NormalBlending ) data . blending = this . blending ;
322
322
if ( this . side !== FrontSide ) data . side = this . side ;
323
- if ( this . vertexColors ) data . vertexColors = true ;
323
+ if ( this . vertexColors === true ) data . vertexColors = true ;
324
324
325
325
if ( this . opacity < 1 ) data . opacity = this . opacity ;
326
- if ( this . transparent === true ) data . transparent = this . transparent ;
326
+ if ( this . transparent === true ) data . transparent = true ;
327
327
328
328
data . depthFunc = this . depthFunc ;
329
329
data . depthTest = this . depthTest ;
@@ -354,17 +354,17 @@ class Material extends EventDispatcher {
354
354
if ( this . dithering === true ) data . dithering = true ;
355
355
356
356
if ( this . alphaTest > 0 ) data . alphaTest = this . alphaTest ;
357
- if ( this . alphaHash === true ) data . alphaHash = this . alphaHash ;
358
- if ( this . alphaToCoverage === true ) data . alphaToCoverage = this . alphaToCoverage ;
359
- if ( this . premultipliedAlpha === true ) data . premultipliedAlpha = this . premultipliedAlpha ;
360
- if ( this . forceSinglePass === true ) data . forceSinglePass = this . forceSinglePass ;
357
+ if ( this . alphaHash === true ) data . alphaHash = true ;
358
+ if ( this . alphaToCoverage === true ) data . alphaToCoverage = true ;
359
+ if ( this . premultipliedAlpha === true ) data . premultipliedAlpha = true ;
360
+ if ( this . forceSinglePass === true ) data . forceSinglePass = true ;
361
361
362
- if ( this . wireframe === true ) data . wireframe = this . wireframe ;
362
+ if ( this . wireframe === true ) data . wireframe = true ;
363
363
if ( this . wireframeLinewidth > 1 ) data . wireframeLinewidth = this . wireframeLinewidth ;
364
364
if ( this . wireframeLinecap !== 'round' ) data . wireframeLinecap = this . wireframeLinecap ;
365
365
if ( this . wireframeLinejoin !== 'round' ) data . wireframeLinejoin = this . wireframeLinejoin ;
366
366
367
- if ( this . flatShading === true ) data . flatShading = this . flatShading ;
367
+ if ( this . flatShading === true ) data . flatShading = true ;
368
368
369
369
if ( this . visible === false ) data . visible = false ;
370
370
0 commit comments