From 7d0b1875477f58299b257e727bdfee7bbbd5f967 Mon Sep 17 00:00:00 2001 From: yuanjiajia <1139393632@qq.com> Date: Mon, 14 Feb 2022 17:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=B8=B8=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E6=96=87=E4=BB=B6=E5=B7=B2=E7=BB=8F=E7=BA=A2=E7=BC=96?= =?UTF-8?q?=E5=86=99=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/print.php | 3 +- src/scene/AnalogFilmSimulation.php | 69 ++++++++++++++++++++++++++++ src/scene/BackgroundImg.php | 34 ++++++++++++++ src/scene/Bloom.php | 26 +++++++++++ src/scene/ColorAberration.php | 21 +++++++++ src/scene/ColorLUT.php | 27 +++++++++++ src/scene/IrradianceContourLines.php | 36 +++++++++++++++ src/scene/Mist.php | 41 +++++++++++++++++ src/scene/Synthesis.php | 21 +++++++++ src/scene/ToneMapAutoLinear.php | 16 +++++++ src/scene/ToneMapCamera.php | 2 +- src/scene/ToneMapReinhard.php | 2 +- src/scene/Vignetting.php | 21 +++++++++ src/scene/WhiteBalance.php | 31 +++++++++++++ 14 files changed, 346 insertions(+), 4 deletions(-) create mode 100644 src/scene/AnalogFilmSimulation.php create mode 100644 src/scene/BackgroundImg.php create mode 100644 src/scene/Bloom.php create mode 100644 src/scene/ColorAberration.php create mode 100644 src/scene/ColorLUT.php create mode 100644 src/scene/IrradianceContourLines.php create mode 100644 src/scene/Mist.php create mode 100644 src/scene/Synthesis.php create mode 100644 src/scene/ToneMapAutoLinear.php create mode 100644 src/scene/Vignetting.php create mode 100644 src/scene/WhiteBalance.php diff --git a/examples/print.php b/examples/print.php index a44f846..f7e1798 100644 --- a/examples/print.php +++ b/examples/print.php @@ -39,12 +39,11 @@ echo $filesaver; //设置打印 “胶片” 配置参数 $film = new Film(); - $film->outputs[] = new ImageSaverBase(['type' => ImageSaverBase::TYPE_RGBA ]); $film->outputs[] = new ImageSaverBase(['type' => ImageSaverBase::TYPE_MATERIAL_ID ]); $film->outputs[] = new ImageSaverNumber(['index' => 2 ]); -$film->imagepipelines['002'] = [new NoiseReducerOIDN(),new Pretreatment(),new ToneMapCamera(),new CammaCorrection()]; +$film->imagepipelines['002'] = [new NoiseReducerOIDN(),new Pretreatment(),new ToneMapAutoLinear(),new ToneMapLinear(),new AnalogFilmSimulation(),new IrradianceContourLines(),new CammaCorrection()]; echo $film; ?> diff --git a/src/scene/AnalogFilmSimulation.php b/src/scene/AnalogFilmSimulation.php new file mode 100644 index 0000000..2c1a25d --- /dev/null +++ b/src/scene/AnalogFilmSimulation.php @@ -0,0 +1,69 @@ + diff --git a/src/scene/BackgroundImg.php b/src/scene/BackgroundImg.php new file mode 100644 index 0000000..a05af34 --- /dev/null +++ b/src/scene/BackgroundImg.php @@ -0,0 +1,34 @@ + diff --git a/src/scene/Bloom.php b/src/scene/Bloom.php new file mode 100644 index 0000000..753b81a --- /dev/null +++ b/src/scene/Bloom.php @@ -0,0 +1,26 @@ + diff --git a/src/scene/ColorAberration.php b/src/scene/ColorAberration.php new file mode 100644 index 0000000..a27f1ea --- /dev/null +++ b/src/scene/ColorAberration.php @@ -0,0 +1,21 @@ + diff --git a/src/scene/ColorLUT.php b/src/scene/ColorLUT.php new file mode 100644 index 0000000..d011635 --- /dev/null +++ b/src/scene/ColorLUT.php @@ -0,0 +1,27 @@ + diff --git a/src/scene/IrradianceContourLines.php b/src/scene/IrradianceContourLines.php new file mode 100644 index 0000000..61c1cf2 --- /dev/null +++ b/src/scene/IrradianceContourLines.php @@ -0,0 +1,36 @@ + diff --git a/src/scene/Mist.php b/src/scene/Mist.php new file mode 100644 index 0000000..ba9752d --- /dev/null +++ b/src/scene/Mist.php @@ -0,0 +1,41 @@ + diff --git a/src/scene/Synthesis.php b/src/scene/Synthesis.php new file mode 100644 index 0000000..43cb67e --- /dev/null +++ b/src/scene/Synthesis.php @@ -0,0 +1,21 @@ + diff --git a/src/scene/ToneMapAutoLinear.php b/src/scene/ToneMapAutoLinear.php new file mode 100644 index 0000000..a75c874 --- /dev/null +++ b/src/scene/ToneMapAutoLinear.php @@ -0,0 +1,16 @@ + diff --git a/src/scene/ToneMapCamera.php b/src/scene/ToneMapCamera.php index b796bdd..9ec27ed 100644 --- a/src/scene/ToneMapCamera.php +++ b/src/scene/ToneMapCamera.php @@ -7,7 +7,7 @@ class ToneMapCamera extends BaseCfg { /** - * @var string 一种模拟照相机曝光参数的颜色映射类型,(固定取值:TONEMAP_LINEAR) + * @var string 一种模拟照相机曝光参数的颜色映射,(固定取值:TONEMAP_LINEAR) */ public $type = "TONEMAP_LUXLINEAR"; diff --git a/src/scene/ToneMapReinhard.php b/src/scene/ToneMapReinhard.php index 046165c..7d62090 100644 --- a/src/scene/ToneMapReinhard.php +++ b/src/scene/ToneMapReinhard.php @@ -7,7 +7,7 @@ class ToneMapReinhard extends BaseCfg { /** - * @var string 一种名为 ToneMapReinhard(莱茵哈德) 的颜色映射类型,(固定取值:TONEMAP_REINHARD02) + * @var string 一种名为 ToneMapReinhard(莱茵哈德) 的颜色映射,(固定取值:TONEMAP_REINHARD02) */ public $type = "TONEMAP_LUXLINEAR"; diff --git a/src/scene/Vignetting.php b/src/scene/Vignetting.php new file mode 100644 index 0000000..6cb30c5 --- /dev/null +++ b/src/scene/Vignetting.php @@ -0,0 +1,21 @@ + diff --git a/src/scene/WhiteBalance.php b/src/scene/WhiteBalance.php new file mode 100644 index 0000000..1e9e275 --- /dev/null +++ b/src/scene/WhiteBalance.php @@ -0,0 +1,31 @@ +