Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSturk committed Aug 20, 2019
1 parent b2ab31d commit 7b14d5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/materials/MeshPhysicalMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLPrograms.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {

gradientMap: !! material.gradientMap,

sheen: !!material.sheenColor,
sheen: !! material.sheenColor,

combine: material.combine,

Expand Down

0 comments on commit 7b14d5c

Please sign in to comment.