diff --git a/src/scene/texture/deformation/Distort.php b/src/scene/texture/deformation/Distort.php new file mode 100644 index 0000000..da0dc9d --- /dev/null +++ b/src/scene/texture/deformation/Distort.php @@ -0,0 +1,61 @@ +type = self::TYPE_DISTORT; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道(输入源) + */ + public function setSource($color) + { + $this->texture = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置偏移 + */ + public function setOffset($color) + { + $this->offset = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/procedural/ObjectId.php b/src/scene/texture/procedural/ObjectId.php new file mode 100644 index 0000000..63a1c1e --- /dev/null +++ b/src/scene/texture/procedural/ObjectId.php @@ -0,0 +1,28 @@ +type = self::TYPE_OBJECTID; + $this->id = Scene::createID(); + Base::__construct($config); + } + +} + +?> diff --git a/src/scene/texture/procedural/ObjectIdColor.php b/src/scene/texture/procedural/ObjectIdColor.php new file mode 100644 index 0000000..79ce679 --- /dev/null +++ b/src/scene/texture/procedural/ObjectIdColor.php @@ -0,0 +1,28 @@ +type = self::TYPE_OBJECTIDCOLOR; + $this->id = Scene::createID(); + Base::__construct($config); + } + +} + +?> diff --git a/src/scene/texture/procedural/ObjectIdNormalized.php b/src/scene/texture/procedural/ObjectIdNormalized.php new file mode 100644 index 0000000..f2a72f8 --- /dev/null +++ b/src/scene/texture/procedural/ObjectIdNormalized.php @@ -0,0 +1,28 @@ +type = self::TYPE_OBJECTIDNORMALIZED; + $this->id = Scene::createID(); + Base::__construct($config); + } + +} + +?> diff --git a/src/scene/texture/procedural/Position.php b/src/scene/texture/procedural/Position.php new file mode 100644 index 0000000..83a6a1f --- /dev/null +++ b/src/scene/texture/procedural/Position.php @@ -0,0 +1,28 @@ +type = self::TYPE_POSITION; + $this->id = Scene::createID(); + Base::__construct($config); + } + +} + +?> diff --git a/src/scene/texture/procedural/Random.php b/src/scene/texture/procedural/Random.php new file mode 100644 index 0000000..dff1c99 --- /dev/null +++ b/src/scene/texture/procedural/Random.php @@ -0,0 +1,46 @@ +type = self::TYPE_RANDOM; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置明度值 + */ + public function setTexture1($color) + { + $this->texture1 = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/procedural/ShadingNormal.php b/src/scene/texture/procedural/ShadingNormal.php new file mode 100644 index 0000000..282d8f6 --- /dev/null +++ b/src/scene/texture/procedural/ShadingNormal.php @@ -0,0 +1,28 @@ +type = self::TYPE_SHADINGNORMAL; + $this->id = Scene::createID(); + Base::__construct($config); + } + +} + +?> diff --git a/src/scene/texture/tint/BrightContrast.php b/src/scene/texture/tint/BrightContrast.php new file mode 100644 index 0000000..4b529bf --- /dev/null +++ b/src/scene/texture/tint/BrightContrast.php @@ -0,0 +1,69 @@ +type = self::TYPE_BRIGHTCONTRAST; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道(输入源) + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置亮度 + */ + public function setBrightness($color) + { + $this->brightness = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置对比度 + */ + public function setContrast($color) + { + $this->contrast = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/tint/Hsv.php b/src/scene/texture/tint/Hsv.php new file mode 100644 index 0000000..2be5c76 --- /dev/null +++ b/src/scene/texture/tint/Hsv.php @@ -0,0 +1,82 @@ +type = self::TYPE_HSV; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道(输入源) + */ + public function setTexture($color) + { + $this->texture = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置色相偏移 + */ + public function setHue($color) + { + $this->hue = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置饱和度 + */ + public function setSaturation($color) + { + $this->saturation = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置亮度 + */ + public function setBrightness($color) + { + $this->value = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/tint/Subtract.php b/src/scene/texture/tint/Subtract.php new file mode 100644 index 0000000..90774fc --- /dev/null +++ b/src/scene/texture/tint/Subtract.php @@ -0,0 +1,56 @@ +type = self::TYPE_SUBTRACT; + $this->id = Scene::createID(); + Base::__construct($config); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道1(亮度) + */ + public function setBrightness($color) + { + $this->texture1 = Scene::testAbnormal($color); + } + + /** + * @param object $color 接收一个贴图对象或小数形式的色值,设置颜色通道2(输入源) + */ + public function setSource($color) + { + $this->texture2 = Scene::testAbnormal($color); + } + +} + +?> diff --git a/src/scene/texture/transform/NormalMap.php b/src/scene/texture/transform/NormalMap.php index abad809..1946761 100644 --- a/src/scene/texture/transform/NormalMap.php +++ b/src/scene/texture/transform/NormalMap.php @@ -4,7 +4,6 @@ namespace Blobt\Luxcore\scene\texture\transform; use Blobt\Luxcore\scene\texture\TextureBase; use Blobt\Luxcore\scene\Scene; use Blobt\Luxcore\core\Base; -use Blobt\Luxcore\scene\texture\mapping\Mapping; class ImageMap extends TextureBase { diff --git a/src/scene/texture/value/ConstFloat_C.php b/src/scene/texture/value/ConstFloat_C.php new file mode 100644 index 0000000..31d7295 --- /dev/null +++ b/src/scene/texture/value/ConstFloat_C.php @@ -0,0 +1,23 @@ + diff --git a/src/scene/texture/value/ConstFloat_F.php b/src/scene/texture/value/ConstFloat_F.php new file mode 100644 index 0000000..67d6e20 --- /dev/null +++ b/src/scene/texture/value/ConstFloat_F.php @@ -0,0 +1,23 @@ +