|
@ -115,7 +115,7 @@ class MatHelper{ |
|
|
$scene->registerTexture($bumpTexture); |
|
|
$scene->registerTexture($bumpTexture); |
|
|
|
|
|
|
|
|
$normalTexture = new NormalMap(); |
|
|
$normalTexture = new NormalMap(); |
|
|
$normalTexture->texture = $bumpTexture; |
|
|
|
|
|
|
|
|
$normalTexture->setTexture($bumpTexture); |
|
|
$normalTexture->scale = $matOriginal->matParams->bumpLevel; |
|
|
$normalTexture->scale = $matOriginal->matParams->bumpLevel; |
|
|
$scene->registerTexture($normalTexture); |
|
|
$scene->registerTexture($normalTexture); |
|
|
$material->setBumptex($normalTexture); |
|
|
$material->setBumptex($normalTexture); |
|
|