|
@ -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(); |
|
|