|
|
@ -262,8 +262,8 @@ class MatHelper{ |
|
|
|
$material = new GlassRough(); |
|
|
|
$material->setTransmission(self::hex2floatColor($matOriginal->matParams->refractivityColor)); |
|
|
|
$material->setInteriorIor($matOriginal->matParams->refractionIor); |
|
|
|
$material->setUroughness($matOriginal->matParams->roughness); |
|
|
|
$material->setVroughness($matOriginal->matParams->roughness); |
|
|
|
$material->setUroughness($matOriginal->matParams->roughness ** 2.2); |
|
|
|
$material->setVroughness($matOriginal->matParams->roughness ** 2.2); |
|
|
|
if($matOriginal->matParams->isFilmEnabled === self::OPEN){ |
|
|
|
$material->setFilmthickness( |
|
|
|
$matOriginal->matParams->filmthickness / 2 |
|
|
@ -409,16 +409,16 @@ class MatHelper{ |
|
|
|
$translucencyIntensity = $matOriginal->matParams->translucencyIntensity; |
|
|
|
$material->setTransmission( self::hex2floatColor( |
|
|
|
$matOriginal->matParams->translucencyColor, |
|
|
|
$translucencyIntensity * 1.05 |
|
|
|
$translucencyIntensity |
|
|
|
)); |
|
|
|
$material->setBaseColor( self::hex2floatColor( |
|
|
|
$matOriginal->matParams->translucencyColor, |
|
|
|
(1 - $translucencyIntensity) * 1.05 |
|
|
|
1 - $translucencyIntensity |
|
|
|
)); |
|
|
|
$material->setSpecular("0.04 0.04 0.04"); |
|
|
|
$material->setSpecular_BF("0.04 0.04 0.04"); |
|
|
|
$material->setUroughness($matOriginal->matParams->roughness); |
|
|
|
$material->setVroughness($matOriginal->matParams->roughness); |
|
|
|
$material->setUroughness($matOriginal->matParams->roughness ** 2.2); |
|
|
|
$material->setVroughness($matOriginal->matParams->roughness ** 2.2); |
|
|
|
|
|
|
|
|
|
|
|
//创建一个铺贴对象,使用"uvmapping2d"类型的铺贴对象
|
|
|
|