Browse Source
修改了“print.php”、“Film.php”两个类文件,新增了“CammaCorrection.php”、“Pretreatment.php”、“ToneMapCamera.php”、“ToneMapLinear.php”、“ToneMapReinhard.php”五个类文件
master
修改了“print.php”、“Film.php”两个类文件,新增了“CammaCorrection.php”、“Pretreatment.php”、“ToneMapCamera.php”、“ToneMapLinear.php”、“ToneMapReinhard.php”五个类文件
master
yuanjiajia
3 years ago
7 changed files with 138 additions and 10 deletions
-
9examples/print.php
-
21src/scene/CammaCorrection.php
-
18src/scene/Film.php
-
17src/scene/Pretreatment.php
-
31src/scene/ToneMapCamera.php
-
21src/scene/ToneMapLinear.php
-
31src/scene/ToneMapReinhard.php
@ -0,0 +1,21 @@ |
|||
<?php |
|||
|
|||
namespace Blobt\Luxcore\scene; |
|||
|
|||
|
|||
class CammaCorrection extends BaseCfg |
|||
{ |
|||
|
|||
/** |
|||
* @var string 颜色映射类型为 线性倍增,(固定取值:TONEMAP_LINEAR) |
|||
*/ |
|||
public $type = "GAMMA_CORRECTION"; |
|||
|
|||
/** |
|||
* @var float 亮度增益,(取值:0-100的小数) |
|||
*/ |
|||
public $value = 2.2; |
|||
|
|||
} |
|||
|
|||
?>
|
@ -0,0 +1,17 @@ |
|||
<?php |
|||
|
|||
namespace Blobt\Luxcore\scene; |
|||
|
|||
|
|||
class Pretreatment extends BaseCfg |
|||
{ |
|||
|
|||
/** |
|||
* @var string TODO:本类尚未明确对 图像 产生何种具体效果,包括类名也没有代表其真实意义,只是因为在图像管线处理中,此类始终位于其他 effect类 的前面,因此 |
|||
* 暂将此类命名为“Pretreatment(预处理)”。其"$type"属性,也尚未查出其他可选的值,其默认的“NOP”值,实质就表示本类没对图像施加任何效果。 |
|||
*/ |
|||
public $type = "NOP"; |
|||
|
|||
} |
|||
|
|||
?>
|
@ -0,0 +1,31 @@ |
|||
<?php |
|||
|
|||
namespace Blobt\Luxcore\scene; |
|||
|
|||
|
|||
class ToneMapCamera extends BaseCfg |
|||
{ |
|||
|
|||
/** |
|||
* @var string 一种模拟照相机曝光参数的颜色映射类型,(固定取值:TONEMAP_LINEAR) |
|||
*/ |
|||
public $type = "TONEMAP_LUXLINEAR"; |
|||
|
|||
/** |
|||
* @var float 光圈大小,(取值:大于0的的小数) |
|||
*/ |
|||
public $fstop = 2.8; |
|||
|
|||
/** |
|||
* @var float 曝光时长,(取值:大于等于0的的小数) |
|||
*/ |
|||
public $exposure = 0.01; |
|||
|
|||
/** |
|||
* @var float 胶片感光度,(取值:大于等于0的的小数) |
|||
*/ |
|||
public $sensitivity = 100; |
|||
|
|||
} |
|||
|
|||
?>
|
@ -0,0 +1,21 @@ |
|||
<?php |
|||
|
|||
namespace Blobt\Luxcore\scene; |
|||
|
|||
|
|||
class ToneMapLinear extends BaseCfg |
|||
{ |
|||
|
|||
/** |
|||
* @var string 颜色映射类型为 线性倍增,(固定取值:TONEMAP_LINEAR) |
|||
*/ |
|||
public $type = "TONEMAP_LINEAR"; |
|||
|
|||
/** |
|||
* @var float 亮度增益,(取值:0-100的小数) |
|||
*/ |
|||
public $scale = 1; |
|||
|
|||
} |
|||
|
|||
?>
|
@ -0,0 +1,31 @@ |
|||
<?php |
|||
|
|||
namespace Blobt\Luxcore\scene; |
|||
|
|||
|
|||
class ToneMapReinhard extends BaseCfg |
|||
{ |
|||
|
|||
/** |
|||
* @var string 一种名为 ToneMapReinhard(莱茵哈德) 的颜色映射类型,(固定取值:TONEMAP_REINHARD02) |
|||
*/ |
|||
public $type = "TONEMAP_LUXLINEAR"; |
|||
|
|||
/** |
|||
* @var float TODO:具体作用尚未明确,(取值:0-25的小数) |
|||
*/ |
|||
public $prescale = 1; |
|||
|
|||
/** |
|||
* @var float TODO:具体作用尚未明确,(取值:0-25的小数) |
|||
*/ |
|||
public $postscale = 1.2; |
|||
|
|||
/** |
|||
* @var float TODO:具体作用尚未明确,(取值:大于0-25的小数) |
|||
*/ |
|||
public $burn = 6; |
|||
|
|||
} |
|||
|
|||
?>
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue