浏览代码

fixed formatting

Daniel Sturk 6 年之前
父节点
当前提交
7b14d5cbb2
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/materials/MeshPhysicalMaterial.js
  2. 1 1
      src/renderers/WebGLRenderer.js
  3. 1 1
      src/renderers/webgl/WebGLPrograms.js

+ 1 - 1
src/materials/MeshPhysicalMaterial.js

@@ -55,7 +55,7 @@ MeshPhysicalMaterial.prototype.copy = function ( source ) {
 	this.clearCoat = source.clearCoat;
 	this.clearCoat = source.clearCoat;
 	this.clearCoatRoughness = source.clearCoatRoughness;
 	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;
 	else this.sheenColor = null;
 
 
 	this.clearCoatNormalMap = source.clearCoatNormalMap;
 	this.clearCoatNormalMap = source.clearCoatNormalMap;

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -2271,7 +2271,7 @@ function WebGLRenderer( parameters ) {
 
 
 		uniforms.clearCoat.value = material.clearCoat;
 		uniforms.clearCoat.value = material.clearCoat;
 		uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
 		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 ) {
 		if ( material.clearCoatNormalMap ) {
 
 

+ 1 - 1
src/renderers/webgl/WebGLPrograms.js

@@ -163,7 +163,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
 
 
 			gradientMap: !! material.gradientMap,
 			gradientMap: !! material.gradientMap,
 
 
-			sheen: !!material.sheenColor,
+			sheen: !! material.sheenColor,
 
 
 			combine: material.combine,
 			combine: material.combine,