|
@ -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); |
|
|
$textureSavaPath = $cacheFileDir.'/'.basename($textureUrl); |
|
|
$textureHandle = fopen($textureSavaPath, "w"); |
|
|
$textureHandle = fopen($textureSavaPath, "w"); |
|
|
(new Client())->get($textureUrl, [RequestOptions::SINK => $textureHandle]); |
|
|
(new Client())->get($textureUrl, [RequestOptions::SINK => $textureHandle]); |
|
|