Skip to content

Commit 16eaae5

Browse files
authored
cleanup (mrdoob#26791)
1 parent 633d804 commit 16eaae5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/materials/Material.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@ class Material extends EventDispatcher {
320320

321321
if ( this.blending !== NormalBlending ) data.blending = this.blending;
322322
if ( this.side !== FrontSide ) data.side = this.side;
323-
if ( this.vertexColors ) data.vertexColors = true;
323+
if ( this.vertexColors === true ) data.vertexColors = true;
324324

325325
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;
327327

328328
data.depthFunc = this.depthFunc;
329329
data.depthTest = this.depthTest;
@@ -354,17 +354,17 @@ class Material extends EventDispatcher {
354354
if ( this.dithering === true ) data.dithering = true;
355355

356356
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;
361361

362-
if ( this.wireframe === true ) data.wireframe = this.wireframe;
362+
if ( this.wireframe === true ) data.wireframe = true;
363363
if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth;
364364
if ( this.wireframeLinecap !== 'round' ) data.wireframeLinecap = this.wireframeLinecap;
365365
if ( this.wireframeLinejoin !== 'round' ) data.wireframeLinejoin = this.wireframeLinejoin;
366366

367-
if ( this.flatShading === true ) data.flatShading = this.flatShading;
367+
if ( this.flatShading === true ) data.flatShading = true;
368368

369369
if ( this.visible === false ) data.visible = false;
370370

0 commit comments

Comments
 (0)