Browse Source

渲染测式 开发

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

2
examples/renderTest.php

@ -231,7 +231,7 @@ foreach($taskModel->childsParams as $childParams){
if(is_object($matOriginal)){ 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)*-1;
$material = createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene); $material = createLuxcoreMat($matOriginal, $textureScaleU, $textureScaleV, $cacheFileDir, $scene);
}else{ }else{
$material = new Disney(); $material = new Disney();

Loading…
Cancel
Save