diff --git a/examples/matRenderTest.php b/examples/matRenderTest.php index aca1058..ed46ef0 100644 --- a/examples/matRenderTest.php +++ b/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: diff --git a/examples/renderTest.php b/examples/renderTest.php index 6c385eb..0015649 100644 --- a/examples/renderTest.php +++ b/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: diff --git a/src/utils/MatHelper.php b/src/utils/MatHelper.php index edd17b9..56ec9e2 100644 --- a/src/utils/MatHelper.php +++ b/src/utils/MatHelper.php @@ -296,6 +296,9 @@ class MatHelper{ $material->setUroughness($roughnessTexture); $material->setVroughness($roughnessTexture); } + + + return $material; }