Browse Source

渲染测式 开发

master
yuanjiajia 1 year ago
parent
commit
be26dd5134
  1. 3
      examples/renderTest.php

3
examples/renderTest.php

@ -228,9 +228,10 @@ foreach($taskModel->childsParams as $childParams){
return $childParams->defaultMat; return $childParams->defaultMat;
} }
})($childParams); })($childParams);
if(is_object($matOriginal)){
$textureScaleU = $taskModel->uvScale*(MAT_STANDARD_SIZE/$matOriginal->width); $textureScaleU = $taskModel->uvScale*(MAT_STANDARD_SIZE/$matOriginal->width);
$textureScaleV = $taskModel->uvScale*(MAT_STANDARD_SIZE/$matOriginal->height); $textureScaleV = $taskModel->uvScale*(MAT_STANDARD_SIZE/$matOriginal->height);
if(is_object($matOriginal)){
$material = createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $downloadDir, $scene); $material = createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $downloadDir, $scene);
}else{ }else{
$material = new Disney(); $material = new Disney();

Loading…
Cancel
Save