|
@ -113,8 +113,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->basecolor = $color; |
|
|
else $this->basecolor = $color; |
|
@ -127,8 +126,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->subsurface = $color; |
|
|
else $this->subsurface = $color; |
|
@ -141,8 +139,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->metallic = $color; |
|
|
else $this->metallic = $color; |
|
@ -155,8 +152,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->specular = $color; |
|
|
else $this->specular = $color; |
|
@ -169,8 +165,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->speculartint = $color; |
|
|
else $this->speculartint = $color; |
|
@ -183,8 +178,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->roughness = $color; |
|
|
else $this->roughness = $color; |
|
@ -197,8 +191,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->anisotropic = $color; |
|
|
else $this->anisotropic = $color; |
|
@ -211,8 +204,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->sheen = $color; |
|
|
else $this->sheen = $color; |
|
@ -225,8 +217,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->sheentint = $color; |
|
|
else $this->sheentint = $color; |
|
@ -239,8 +230,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->clearcoat = $color; |
|
|
else $this->clearcoat = $color; |
|
@ -253,8 +243,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->clearcoatgloss = $color; |
|
|
else $this->clearcoatgloss = $color; |
|
@ -267,8 +256,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->transparencyFront = $color; |
|
|
else $this->transparencyFront = $color; |
|
@ -281,8 +269,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->transparencyBack = $color; |
|
|
else $this->transparencyBack = $color; |
|
@ -295,8 +282,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->filmamount = $color; |
|
|
else $this->filmamount = $color; |
|
@ -308,8 +294,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->filmthickness = $color; |
|
|
else $this->filmthickness = $color; |
|
@ -322,8 +307,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->filmior = $color; |
|
|
else $this->filmior = $color; |
|
@ -336,8 +320,7 @@ class Disney extends MaterialsBase |
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
|
|
|
|
|
throw new \Exception("You use an unregistered ".$color->getClassName()." object for the current property"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else $this->bumptex = $color; |
|
|
else $this->bumptex = $color; |
|
|