diff --git a/src/scene/texture/composite/Absolute.php b/src/scene/texture/composite/Absolute.php new file mode 100644 index 0000000..5e00180 --- /dev/null +++ b/src/scene/texture/composite/Absolute.php @@ -0,0 +1,43 @@ +type = self::TYPE_ABSOLUTE; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道 + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/Add.php b/src/scene/texture/composite/Add.php new file mode 100644 index 0000000..b642a9a --- /dev/null +++ b/src/scene/texture/composite/Add.php @@ -0,0 +1,56 @@ +type = self::TYPE_ADD; + $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/Clamp.php b/src/scene/texture/composite/Clamp.php new file mode 100644 index 0000000..71662bd --- /dev/null +++ b/src/scene/texture/composite/Clamp.php @@ -0,0 +1,52 @@ +type = self::TYPE_CLAMP; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道1 + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/Divide.php b/src/scene/texture/composite/Divide.php new file mode 100644 index 0000000..e020891 --- /dev/null +++ b/src/scene/texture/composite/Divide.php @@ -0,0 +1,56 @@ +type = self::TYPE_DIVIDE; + $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/GreaterThan.php b/src/scene/texture/composite/GreaterThan.php new file mode 100644 index 0000000..98e8324 --- /dev/null +++ b/src/scene/texture/composite/GreaterThan.php @@ -0,0 +1,55 @@ +type = self::TYPE_GREATERTHAN; + $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/LessThan.php b/src/scene/texture/composite/LessThan.php new file mode 100644 index 0000000..5f7b7f0 --- /dev/null +++ b/src/scene/texture/composite/LessThan.php @@ -0,0 +1,55 @@ +type = self::TYPE_LESSTHAN; + $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/Mix.php b/src/scene/texture/composite/Mix.php new file mode 100644 index 0000000..29551e2 --- /dev/null +++ b/src/scene/texture/composite/Mix.php @@ -0,0 +1,68 @@ +type = self::TYPE_MIX; + $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 接收一个贴图对象或小数形式的色值,设置混合系数 + */ + public function setAmount($color) + { + $this->amount = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/Modulo.php b/src/scene/texture/composite/Modulo.php new file mode 100644 index 0000000..963d0f2 --- /dev/null +++ b/src/scene/texture/composite/Modulo.php @@ -0,0 +1,55 @@ +type = self::TYPE_MODULO; + $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/Power.php b/src/scene/texture/composite/Power.php new file mode 100644 index 0000000..b3e4a7a --- /dev/null +++ b/src/scene/texture/composite/Power.php @@ -0,0 +1,55 @@ +type = self::TYPE_POWER; + $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/Rounding.php b/src/scene/texture/composite/Rounding.php new file mode 100644 index 0000000..a0fc41a --- /dev/null +++ b/src/scene/texture/composite/Rounding.php @@ -0,0 +1,55 @@ +type = self::TYPE_ROUNDING; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道 + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置增量 + */ + public function setIncrement($color) + { + $this->increment = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/composite/Scale.php b/src/scene/texture/composite/Scale.php new file mode 100644 index 0000000..8517815 --- /dev/null +++ b/src/scene/texture/composite/Scale.php @@ -0,0 +1,55 @@ +type = self::TYPE_SCALE; + $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/Subtract.php b/src/scene/texture/composite/Subtract.php new file mode 100644 index 0000000..0df9e3f --- /dev/null +++ b/src/scene/texture/composite/Subtract.php @@ -0,0 +1,55 @@ +type = self::TYPE_SUBTRACT; + $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/procedural/BlenderBlend.php b/src/scene/texture/procedural/BlenderBlend.php index 6442b65..36b6252 100644 --- a/src/scene/texture/procedural/BlenderBlend.php +++ b/src/scene/texture/procedural/BlenderBlend.php @@ -58,7 +58,7 @@ class BlenderBlend extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderClouds.php b/src/scene/texture/procedural/BlenderClouds.php index 207ae49..2c88b02 100644 --- a/src/scene/texture/procedural/BlenderClouds.php +++ b/src/scene/texture/procedural/BlenderClouds.php @@ -70,7 +70,7 @@ class BlenderClouds extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderDistortedNoise.php b/src/scene/texture/procedural/BlenderDistortedNoise.php index 429fa8c..d94157b 100644 --- a/src/scene/texture/procedural/BlenderDistortedNoise.php +++ b/src/scene/texture/procedural/BlenderDistortedNoise.php @@ -64,7 +64,7 @@ class BlenderDistortedNoise extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderMagic.php b/src/scene/texture/procedural/BlenderMagic.php index 0e69626..3e407ec 100644 --- a/src/scene/texture/procedural/BlenderMagic.php +++ b/src/scene/texture/procedural/BlenderMagic.php @@ -41,7 +41,7 @@ class BlenderMagic extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderMarble.php b/src/scene/texture/procedural/BlenderMarble.php index 9e1a076..12021a3 100644 --- a/src/scene/texture/procedural/BlenderMarble.php +++ b/src/scene/texture/procedural/BlenderMarble.php @@ -83,7 +83,7 @@ class BlenderMarble extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderMusgrave.php b/src/scene/texture/procedural/BlenderMusgrave.php index 4507678..663bf5a 100644 --- a/src/scene/texture/procedural/BlenderMusgrave.php +++ b/src/scene/texture/procedural/BlenderMusgrave.php @@ -102,7 +102,7 @@ class BlenderMusgrave extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderNoise.php b/src/scene/texture/procedural/BlenderNoise.php index 698aa74..26bff74 100644 --- a/src/scene/texture/procedural/BlenderNoise.php +++ b/src/scene/texture/procedural/BlenderNoise.php @@ -36,7 +36,7 @@ class BlenderNoise extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderStucci.php b/src/scene/texture/procedural/BlenderStucci.php index 05c9bc8..299d2bb 100644 --- a/src/scene/texture/procedural/BlenderStucci.php +++ b/src/scene/texture/procedural/BlenderStucci.php @@ -83,7 +83,7 @@ class BlenderStucci extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderVoronoi.php b/src/scene/texture/procedural/BlenderVoronoi.php index 86d9488..00811bf 100644 --- a/src/scene/texture/procedural/BlenderVoronoi.php +++ b/src/scene/texture/procedural/BlenderVoronoi.php @@ -83,7 +83,7 @@ class BlenderVoronoi extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/BlenderWood.php b/src/scene/texture/procedural/BlenderWood.php index 103afc3..c604345 100644 --- a/src/scene/texture/procedural/BlenderWood.php +++ b/src/scene/texture/procedural/BlenderWood.php @@ -96,7 +96,7 @@ class BlenderWood extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Brick.php b/src/scene/texture/procedural/Brick.php index e34bb31..97e452d 100644 --- a/src/scene/texture/procedural/Brick.php +++ b/src/scene/texture/procedural/Brick.php @@ -83,7 +83,7 @@ class Brick extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Checkerboard2d.php b/src/scene/texture/procedural/Checkerboard2d.php index 983a531..b54683c 100644 --- a/src/scene/texture/procedural/Checkerboard2d.php +++ b/src/scene/texture/procedural/Checkerboard2d.php @@ -31,7 +31,7 @@ class Checkerboard2d extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个2D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Checkerboard3d.php b/src/scene/texture/procedural/Checkerboard3d.php index a3e4133..8e6cfc1 100644 --- a/src/scene/texture/procedural/Checkerboard3d.php +++ b/src/scene/texture/procedural/Checkerboard3d.php @@ -31,7 +31,7 @@ class Checkerboard3d extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Fbm.php b/src/scene/texture/procedural/Fbm.php index d09fb50..cd5ffb9 100644 --- a/src/scene/texture/procedural/Fbm.php +++ b/src/scene/texture/procedural/Fbm.php @@ -32,7 +32,7 @@ class Fbm extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/ImageMap.php b/src/scene/texture/procedural/ImageMap.php index d325ad1..cd42f5c 100644 --- a/src/scene/texture/procedural/ImageMap.php +++ b/src/scene/texture/procedural/ImageMap.php @@ -48,7 +48,7 @@ class ImageMap extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个2D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Marble.php b/src/scene/texture/procedural/Marble.php index 3ad936c..0c46698 100644 --- a/src/scene/texture/procedural/Marble.php +++ b/src/scene/texture/procedural/Marble.php @@ -42,7 +42,7 @@ class Marble extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) { diff --git a/src/scene/texture/procedural/Wrinkled.php b/src/scene/texture/procedural/Wrinkled.php index 14a96ed..50b2fef 100644 --- a/src/scene/texture/procedural/Wrinkled.php +++ b/src/scene/texture/procedural/Wrinkled.php @@ -32,7 +32,7 @@ class Wrinkled extends TextureBase /** * @param array $config 接收一个数组,可以初始化当前实例化对象的各种属性 - * @param object $mapping 如需自定义铺贴参数,必须传入一个 Mapping类对象,否则使用一个默认的铺贴参数 + * @param object $mapping 如需自定义铺贴参数,必须传入一个3D类型的 Mapping类对象,否则使用一个默认的铺贴参数 */ public function __construct($config = [],Mapping $mapping = null) {