diff --git a/src/scene/texture/composite/Clamp.php b/src/scene/texture/composite/Clamp.php index 71662bd..33af7ad 100644 --- a/src/scene/texture/composite/Clamp.php +++ b/src/scene/texture/composite/Clamp.php @@ -40,7 +40,7 @@ class Clamp extends TextureBase } /** - * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道1 + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道 */ public function setTexture($color) { diff --git a/src/scene/texture/composite/Dotproduct.php b/src/scene/texture/composite/Dotproduct.php new file mode 100644 index 0000000..0b3c8aa --- /dev/null +++ b/src/scene/texture/composite/Dotproduct.php @@ -0,0 +1,56 @@ +type = self::TYPE_DOTPRODUCT; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道1 + */ + public function setTexture1($color) + { + $this->texture1 = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道2 + */ + public function setTexture2($color) + { + $this->texture2 = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/MakeFloat3.php b/src/scene/texture/composite/MakeFloat3.php new file mode 100644 index 0000000..c0801ed --- /dev/null +++ b/src/scene/texture/composite/MakeFloat3.php @@ -0,0 +1,68 @@ +type = self::TYPE_MAKEFLOAT3; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道1 + */ + public function setTexture1($color) + { + $this->texture1 = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道2 + */ + public function setTexture2($color) + { + $this->texture2 = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道3 + */ + public function setTexture3($color) + { + $this->texture3 = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/SplitFloat3.php b/src/scene/texture/composite/SplitFloat3.php new file mode 100644 index 0000000..69f9249 --- /dev/null +++ b/src/scene/texture/composite/SplitFloat3.php @@ -0,0 +1,53 @@ +type = self::TYPE_SPLITFLOAT3; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道 + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + +} + +?>