type = self::TYPE_GLOSSY; $this->id = Scene::createID(); Base::__construct($config); } public function setUroughness($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->uroughness = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->uroughness = $color; } public function setVroughness($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->vroughness = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->vroughness = $color; } public function setBaseColor($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->kd = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->kd = $color; } public function setSpecular($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->ks = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->ks = $color; } public function setAbsorption($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->ka = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->ka = $color; } public function setAbsorptionDepht($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->d = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->d = $color; } public function setIor($color) { if( is_object($color) ) { if( $color->registerId != null ) $this->index = $color->registerId; else { throw new \Exception("You use an unregistered ".$color->getInstanceClassName()." object for the current property"); } } else $this->index = $color; } public function openMultiBounce() { $this->multibounce = self::OPEN; } public function closeMultiBounce() { $this->multibounce = self::CLOSE; } } ?>