Daniel Sturk před 6 roky
rodič
revize
7b14d5cbb2

+ 1 - 1
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;

+ 1 - 1
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 ) {
 

+ 1 - 1
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,