From 7b14d5cbb2d1e956757febeae84e29e555cb1236 Mon Sep 17 00:00:00 2001 From: Daniel Sturk Date: Tue, 20 Aug 2019 14:50:30 -0400 Subject: [PATCH] fixed formatting --- src/materials/MeshPhysicalMaterial.js | 2 +- src/renderers/WebGLRenderer.js | 2 +- src/renderers/webgl/WebGLPrograms.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/materials/MeshPhysicalMaterial.js b/src/materials/MeshPhysicalMaterial.js index 55f3a34caed0d9..d6c0e22e772e6a 100644 --- a/src/materials/MeshPhysicalMaterial.js +++ b/src/materials/MeshPhysicalMaterial.js @@ -55,7 +55,7 @@ MeshPhysicalMaterial.prototype.copy = function ( source ) { this.clearCoat = source.clearCoat; this.clearCoatRoughness = source.clearCoatRoughness; - if( source.sheenColor ) this.sheenColor = ( this.sheenColor || new Color() ).copy( source.sheenColor ); + if ( source.sheenColor ) this.sheenColor = ( this.sheenColor || new Color() ).copy( source.sheenColor ); else this.sheenColor = null; this.clearCoatNormalMap = source.clearCoatNormalMap; diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 4810dd21cfe6f5..205ed91502a322 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -2271,7 +2271,7 @@ function WebGLRenderer( parameters ) { uniforms.clearCoat.value = material.clearCoat; uniforms.clearCoatRoughness.value = material.clearCoatRoughness; - if( material.sheenColor ) uniforms.sheenColor.value.copy( material.sheenColor ); + if ( material.sheenColor ) uniforms.sheenColor.value.copy( material.sheenColor ); if ( material.clearCoatNormalMap ) { diff --git a/src/renderers/webgl/WebGLPrograms.js b/src/renderers/webgl/WebGLPrograms.js index a87b89f5d4b73f..ddf9c9f0b621bf 100644 --- a/src/renderers/webgl/WebGLPrograms.js +++ b/src/renderers/webgl/WebGLPrograms.js @@ -163,7 +163,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) { gradientMap: !! material.gradientMap, - sheen: !!material.sheenColor, + sheen: !! material.sheenColor, combine: material.combine,