|
@ -1,6 +1,8 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
namespace Blobt\Luxcore\scene\materials; |
|
|
namespace Blobt\Luxcore\scene\materials; |
|
|
|
|
|
|
|
|
|
|
|
use __PHP_Incomplete_Class; |
|
|
use Blobt\Luxcore\core\Base; |
|
|
use Blobt\Luxcore\core\Base; |
|
|
use Blobt\Luxcore\scene\Scene; |
|
|
use Blobt\Luxcore\scene\Scene; |
|
|
|
|
|
|
|
@ -108,87 +110,256 @@ class Disney extends MaterialsBase |
|
|
|
|
|
|
|
|
public function setBaseColor($color) |
|
|
public function setBaseColor($color) |
|
|
{ |
|
|
{ |
|
|
$this->basecolor = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->basecolor = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->basecolor = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setSubsurface($color) |
|
|
public function setSubsurface($color) |
|
|
{ |
|
|
{ |
|
|
$this->subsurface = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->subsurface = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->subsurface = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setMetallic($color) |
|
|
public function setMetallic($color) |
|
|
{ |
|
|
{ |
|
|
$this->metallic = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->metallic = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->metallic = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setSpecular($color) |
|
|
public function setSpecular($color) |
|
|
{ |
|
|
{ |
|
|
$this->specular = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->specular = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->specular = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setSpeculartint($color) |
|
|
public function setSpeculartint($color) |
|
|
{ |
|
|
{ |
|
|
$this->speculartint = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->speculartint = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->speculartint = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setRoughness($color) |
|
|
public function setRoughness($color) |
|
|
{ |
|
|
{ |
|
|
$this->roughness = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->roughness = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->roughness = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setAnisotropic($color) |
|
|
public function setAnisotropic($color) |
|
|
{ |
|
|
{ |
|
|
$this->anisotropic = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->anisotropic = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->anisotropic = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setSheen($color) |
|
|
public function setSheen($color) |
|
|
{ |
|
|
{ |
|
|
$this->sheen = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->sheen = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->sheen = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setSheentint($color) |
|
|
public function setSheentint($color) |
|
|
{ |
|
|
{ |
|
|
$this->sheentint = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->sheentint = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->sheentint = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setClearcoat($color) |
|
|
public function setClearcoat($color) |
|
|
{ |
|
|
{ |
|
|
$this->clearcoat = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->clearcoat = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->clearcoat = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setClearcoatgloss($color) |
|
|
public function setClearcoatgloss($color) |
|
|
{ |
|
|
{ |
|
|
$this->clearcoatgloss = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->clearcoatgloss = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->clearcoatgloss = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setTransparencyFront($color) |
|
|
public function setTransparencyFront($color) |
|
|
{ |
|
|
{ |
|
|
$this->transparencyFront = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->transparencyFront = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->transparencyFront = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setTransparencyBack($color) |
|
|
public function setTransparencyBack($color) |
|
|
{ |
|
|
{ |
|
|
$this->transparencyBack = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->transparencyBack = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->transparencyBack = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setFilmamount($color) |
|
|
public function setFilmamount($color) |
|
|
{ |
|
|
{ |
|
|
$this->filmamount = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->filmamount = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->filmamount = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setFilmthickness($color) |
|
|
public function setFilmthickness($color) |
|
|
|
|
|
{ if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->filmthickness = $color->cards; |
|
|
|
|
|
else |
|
|
{ |
|
|
{ |
|
|
$this->filmthickness = $color; |
|
|
|
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->filmthickness = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setFilmior($color) |
|
|
public function setFilmior($color) |
|
|
{ |
|
|
{ |
|
|
$this->filmior = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->filmior = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->filmior = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function setBumptex($color) |
|
|
public function setBumptex($color) |
|
|
{ |
|
|
{ |
|
|
$this->bumptex = $color; |
|
|
|
|
|
|
|
|
if( is_object($color) ) |
|
|
|
|
|
{ |
|
|
|
|
|
if( $color->cards != null ) $this->bumptex = $color->cards; |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$backtrace = debug_backtrace(); |
|
|
|
|
|
$backtrace = $backtrace[0]['file'].':'.$backtrace[0]['line']."\n"; |
|
|
|
|
|
$this->printException($backtrace,$color); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else $this->bumptex = $color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|