|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
namespace Blobt\Luxcore\scene; |
|
|
namespace Blobt\Luxcore\scene; |
|
|
use Blobt\Luxcore\core\Base; |
|
|
use Blobt\Luxcore\core\Base; |
|
|
|
|
|
use Blobt\Luxcore\file; |
|
|
|
|
|
use Blobt\Luxcore\effect; |
|
|
|
|
|
|
|
|
class Film extends BaseCfg |
|
|
class Film extends BaseCfg |
|
|
{ |
|
|
{ |
|
@ -16,6 +18,9 @@ class Film extends BaseCfg |
|
|
*/ |
|
|
*/ |
|
|
public $filter; |
|
|
public $filter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 渲染图像的宽度,单位像素(取值:大于0的整数) |
|
|
* 渲染图像的宽度,单位像素(取值:大于0的整数) |
|
|
*/ |
|
|
*/ |
|
@ -36,6 +41,9 @@ class Film extends BaseCfg |
|
|
*/ |
|
|
*/ |
|
|
public $openclDevice = 0; |
|
|
public $openclDevice = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @var array 渲染图像后期处理配置参数 |
|
|
* @var array 渲染图像后期处理配置参数 |
|
|
*/ |
|
|
*/ |
|
@ -55,14 +63,14 @@ class Film extends BaseCfg |
|
|
$this->noiseEstimation = new NoiseEstimation($config); |
|
|
$this->noiseEstimation = new NoiseEstimation($config); |
|
|
$this->filter = new Filter($config); |
|
|
$this->filter = new Filter($config); |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverNumber(['index' => 0]); |
|
|
|
|
|
$this->imagepipelines['000'] = [new Pretreatment(),new ToneMapLinear(),new CammaCorrection()]; |
|
|
|
|
|
|
|
|
$this->outputs[] = new file\ImageSaverNumber(['index' => 0]); |
|
|
|
|
|
$this->imagepipelines['000'] = [new effect\Pretreatment(),new effect\ToneMapLinear(),new effect\CammaCorrection()]; |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverBase(['type' => 'ALBEDO']); |
|
|
|
|
|
$this->outputs[] = new ImageSaverBase(['type' => 'AVG_SHADING_NORMAL']); |
|
|
|
|
|
|
|
|
$this->outputs[] = new file\ImageSaverBase(['type' => 'ALBEDO']); |
|
|
|
|
|
$this->outputs[] = new file\ImageSaverBase(['type' => 'AVG_SHADING_NORMAL']); |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverNumber(['index' => 1]); |
|
|
|
|
|
$this->imagepipelines['001'] = [new NoiseReducerOIDN(),new Pretreatment(),new ToneMapLinear(),new CammaCorrection()]; |
|
|
|
|
|
|
|
|
$this->outputs[] = new file\ImageSaverNumber(['index' => 1]); |
|
|
|
|
|
$this->imagepipelines['001'] = [new effect\NoiseReducerOIDN(),new effect\Pretreatment(),new effect\ToneMapLinear(),new effect\CammaCorrection()]; |
|
|
Base::__construct($config); |
|
|
Base::__construct($config); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|