|
@ -91,7 +91,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
if( $color->registerId != null ) $this->basecolor = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -104,7 +104,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
if( $color->registerId != null ) $this->subsurface = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -117,7 +117,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
if( $color->registerId != null ) $this->metallic = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -130,7 +130,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
if( $color->registerId != null ) $this->specular = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -143,7 +143,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
if( $color->registerId != null ) $this->speculartint = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -156,7 +156,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
if( $color->registerId != null ) $this->roughness = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -169,7 +169,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
if( $color->registerId != null ) $this->anisotropic = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -182,7 +182,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
if( $color->registerId != null ) $this->sheen = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -195,7 +195,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
if( $color->registerId != null ) $this->sheentint = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -208,7 +208,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
if( $color->registerId != null ) $this->clearcoat = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -221,7 +221,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
if( $color->registerId != null ) $this->clearcoatgloss = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -234,7 +234,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
if( $color->registerId != null ) $this->transparencyFront = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -247,7 +247,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
if( $color->registerId != null ) $this->transparencyBack = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -260,7 +260,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
if( $color->registerId != null ) $this->filmamount = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -272,7 +272,7 @@ class Disney extends MaterialsBase |
|
|
public function setFilmthickness($color) |
|
|
public function setFilmthickness($color) |
|
|
{ if( is_object($color) ) |
|
|
{ if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
if( $color->registerId != null ) $this->filmthickness = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -285,7 +285,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
if( $color->registerId != null ) $this->filmior = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
@ -298,7 +298,7 @@ class Disney extends MaterialsBase |
|
|
{ |
|
|
{ |
|
|
if( is_object($color) ) |
|
|
if( is_object($color) ) |
|
|
{ |
|
|
{ |
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
if( $color->registerId != null ) $this->bumptex = $color->registerId; |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); |
|
|
xxxxxxxxxx