提交 8b9a4444 编写于 作者: A arobertson0

Linting

上级 58f5ef7d
import { Texture } from './../textures/Texture';
import { Vector2 } from './../math/Vector2';
import { NormalMapTypes } from '../constants';
import {
MeshStandardMaterialParameters,
MeshStandardMaterial,
......
......@@ -27,7 +27,7 @@ function MeshPhysicalMaterial( parameters ) {
this.clearCoat = 0.0;
this.clearCoatRoughness = 0.0;
this.clearCoatNormalScale = new Vector2(1, 1);
this.clearCoatNormalScale = new Vector2( 1, 1 );
this.clearCoatNormalMap = null;
this.setValues( parameters );
......@@ -51,7 +51,7 @@ MeshPhysicalMaterial.prototype.copy = function ( source ) {
this.clearCoatRoughness = source.clearCoatRoughness;
this.clearCoatNormalMap = source.clearCoatNormalMap;
this.clearCoatNormalScale.copy(source.clearCoatNormalScale);
this.clearCoatNormalScale.copy( source.clearCoatNormalScale );
return this;
......
......@@ -2275,18 +2275,23 @@ function WebGLRenderer( parameters ) {
uniforms.clearCoat.value = material.clearCoat;
uniforms.clearCoatRoughness.value = material.clearCoatRoughness;
if ( material.normalMap || material.clearCoatNormalMap) {
if ( material.normalMap || material.clearCoatNormalMap ) {
if ( material.clearCoatNormalMap ) {
if(material.clearCoatNormalMap){
uniforms.clearCoatNormalMap.value = material.clearCoatNormalMap;
}
uniforms.clearCoatNormalScale.value.copy( material.clearCoatNormalScale );
if ( material.side === BackSide ){
if ( material.side === BackSide ) {
uniforms.clearCoatNormalScale.value.negate();
}
}
}
function refreshUniformsMatcap( uniforms, material ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册