Browse Source

渲染测式 开发

master
yuanjiajia 1 year ago
parent
commit
3aa71714b4
  1. 1
      examples/matRenderTest.php
  2. 2
      examples/renderTest.php
  3. 3
      src/utils/MatHelper.php

1
examples/matRenderTest.php

@ -67,7 +67,6 @@ function createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $cacheFi
return MatHelper::createMatOfDisney($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene);
case 2:
return MatHelper::createMatOfGlass($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene);
return;
case 3:
return;
case 4:

2
examples/renderTest.php

@ -66,7 +66,7 @@ function createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $cacheFi
case 1:
return MatHelper::createMatOfDisney($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene);
case 2:
return;
return MatHelper::createMatOfGlass($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene);
case 3:
return;
case 4:

3
src/utils/MatHelper.php

@ -296,6 +296,9 @@ class MatHelper{
$material->setUroughness($roughnessTexture);
$material->setVroughness($roughnessTexture);
}
return $material;
}

Loading…
Cancel
Save