Browse Source

渲染测式 开发

master
yuanjiajia 1 year ago
parent
commit
8db28acef6
  1. 4
      src/utils/MatHelper.php

4
src/utils/MatHelper.php

@ -31,7 +31,9 @@ class MatHelper{
} }
if($matOriginal->matParams->isFilmEnabled === self::OPEN){ if($matOriginal->matParams->isFilmEnabled === self::OPEN){
$material->setFilmamount($matOriginal->matParams->film); $material->setFilmamount($matOriginal->matParams->film);
$material->setFilmthickness($matOriginal->matParams->filmthickness);
$material->setFilmthickness(
$matOriginal->matParams->filmthickness / 2
);
$material->setFilmior($matOriginal->matParams->filmIor); $material->setFilmior($matOriginal->matParams->filmIor);
} }
if($matOriginal->matParams->isSheenEnabled === self::OPEN){ if($matOriginal->matParams->isSheenEnabled === self::OPEN){

Loading…
Cancel
Save