From e6c05d01a44ee3f2a6de068a1fd5c058b72f7fd5 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Wed, 12 Jul 2023 09:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=B5=8B=E5=BC=8F=20?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/MatHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/MatHelper.php b/src/utils/MatHelper.php index 56ec9e2..57f723d 100644 --- a/src/utils/MatHelper.php +++ b/src/utils/MatHelper.php @@ -258,8 +258,8 @@ class MatHelper{ ); // 加载 透射 纹理 - if($matOriginal->matParams->albedoTexture){ - $textureUrl = $matOriginal->matParams->albedoTexture; + if($matOriginal->matParams->refractivityTexture){ + $textureUrl = $matOriginal->matParams->refractivityTexture; $textureSavaPath = $cacheFileDir.'/'.basename($textureUrl); $textureHandle = fopen($textureSavaPath, "w"); (new Client())->get($textureUrl, [RequestOptions::SINK => $textureHandle]); @@ -297,7 +297,7 @@ class MatHelper{ $material->setVroughness($roughnessTexture); } - + return $material; }