|
@@ -893,7 +893,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
var lightPhysicalFragmentChunk = [
|
|
var lightPhysicalFragmentChunk = [
|
|
'PhysicalMaterial material;',
|
|
'PhysicalMaterial material;',
|
|
- 'material.diffuseColor = diffuseColor.rgb;',
|
|
|
|
|
|
+ 'material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );',
|
|
'vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );',
|
|
'vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );',
|
|
'float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );',
|
|
'float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );',
|
|
'material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 );// 0.0525 corresponds to the base mip of a 256 cubemap.',
|
|
'material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 );// 0.0525 corresponds to the base mip of a 256 cubemap.',
|