Browse Source

渲染测式 开发

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

4
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); $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]);

Loading…
Cancel
Save