|
|
@ -113,10 +113,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->basecolor = $color; |
|
|
@ -129,10 +127,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->subsurface = $color; |
|
|
@ -145,10 +141,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->metallic = $color; |
|
|
@ -161,10 +155,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->specular = $color; |
|
|
@ -177,10 +169,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->speculartint = $color; |
|
|
@ -193,10 +183,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->roughness = $color; |
|
|
@ -209,10 +197,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->anisotropic = $color; |
|
|
@ -225,10 +211,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->sheen = $color; |
|
|
@ -241,10 +225,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->sheentint = $color; |
|
|
@ -257,10 +239,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->clearcoat = $color; |
|
|
@ -273,10 +253,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->clearcoatgloss = $color; |
|
|
@ -289,10 +267,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->transparencyFront = $color; |
|
|
@ -305,10 +281,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->transparencyBack = $color; |
|
|
@ -321,10 +295,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->filmamount = $color; |
|
|
@ -336,10 +308,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->filmthickness = $color; |
|
|
@ -352,10 +322,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->filmior = $color; |
|
|
@ -368,10 +336,8 @@ class Disney extends MaterialsBase |
|
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
|
else |
|
|
|
{ |
|
|
|
$message = debug_backtrace(); |
|
|
|
$message = $message[0]['file'].':'.$message[0]['line']."\n"; |
|
|
|
$message .= array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException($message,1); |
|
|
|
$className = array_reverse(explode('\\', get_class($color)))[0]; |
|
|
|
throw new core\SceneException("You use an unregistered {$className} object for the current property"); |
|
|
|
} |
|
|
|
} |
|
|
|
else $this->bumptex = $color; |
|
|
|