diff --git a/examples/PrintScene.php b/examples/PrintScene.php index e0bf3d6..6245106 100644 --- a/examples/PrintScene.php +++ b/examples/PrintScene.php @@ -13,13 +13,13 @@ $scene = new Scene(); $obj = new objects\Objects( [ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型 -$cloudsMap = new texture\procedural\Clouds(); //创建一个 Clouds类的贴图对象 +$cloudsMap = new texture\procedural\BlenderClouds(); //创建一个 Clouds类的贴图对象 $scene->registerTexture($cloudsMap); //将这个对象注册到 Scene $imageMap = new texture\procedural\ImageMap(); //创建一个 ImageMap类的贴图对象 $scene->registerTexture($imageMap); //将这个对象注册到 Scene -$blend = new texture\procedural\Blend(); //创建一个 Blend类的贴图对象 +$blend = new texture\procedural\BlenderBlend(); //创建一个 Blend类的贴图对象 $scene->registerTexture($blend); //将这个对象注册到 Scene diff --git a/src/scene/texture/composite/Remap.php b/src/scene/texture/composite/Remap.php new file mode 100644 index 0000000..c851d6c --- /dev/null +++ b/src/scene/texture/composite/Remap.php @@ -0,0 +1,95 @@ +type = self::TYPE_REMAP; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道(输入源) + */ + public function setTexture($color) + { + $this->value = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置源最小色值 + */ + public function setSourcemin($color) + { + $this->sourcemin = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置源最大色值 + */ + public function setSourcemax($color) + { + $this->sourcemax = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置目标最小色值 + */ + public function setTargetmin($color) + { + $this->targetmin = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置目标最大色值 + */ + public function setTargetmax($color) + { + $this->targetmax = Scene::testAbnormal($color); + } + +} + +?>