|
|
@ -113,8 +113,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
|
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; |
|
|
@ -127,8 +126,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
|
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; |
|
|
@ -141,8 +139,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
|
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; |
|
|
@ -155,8 +152,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
|
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; |
|
|
@ -169,8 +165,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
|
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; |
|
|
@ -183,8 +178,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
|
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; |
|
|
@ -197,8 +191,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
|
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; |
|
|
@ -211,8 +204,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
|
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; |
|
|
@ -225,8 +217,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
|
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; |
|
|
@ -239,8 +230,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
|
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; |
|
|
@ -253,8 +243,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
|
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; |
|
|
@ -267,8 +256,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
|
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; |
|
|
@ -281,8 +269,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
|
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; |
|
|
@ -295,8 +282,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
|
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; |
|
|
@ -308,8 +294,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
|
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; |
|
|
@ -322,8 +307,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
|
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; |
|
|
@ -336,8 +320,7 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
|
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; |
|
|
|