diff --git a/examples/startDemo.php b/examples/startDemo.php index a0c862a..8885f23 100644 --- a/examples/startDemo.php +++ b/examples/startDemo.php @@ -471,7 +471,6 @@ $path = new render\Path(); // 设置 光线跟 $render .= $path; $sampler = new render\Sampler(); // 设置 采样器 配置参数,默认使用 Sobol 类型的自适应采样器 -$sampler->sampling->superSampling = render\Sobol::POW_TWO_SIX; // 设置采样基数的倍数 $render .= $sampler; $lightStrategy = new render\LightStrategy(); // 设置 灯光策略 类型,默认使用 LOG_POWER 类型 @@ -481,7 +480,7 @@ $filesaver = new render\FileSaver(); // 设置 文件储 $render .= $filesaver; $batch = new render\Batch(); // 设置 渲染终止 参数, -$batch->haltspp = 200; // 设置 每像素 采样达 800 则终止渲染 +$batch->haltspp = 1000; // 设置 每像素 采样达 800 则终止渲染 // $batch->halttime = 2000; // 设置 渲染 超时参数, $render .= $batch; @@ -539,5 +538,4 @@ exec($cmd,$output,$returnVar); if( $returnVar == 127 ) throw new \Exception("Please install the luxcorerender bin file in the system directory correctly,Or add to the system environment variable"); - -?> \ No newline at end of file +?> diff --git a/src/scene/render/PathDepth.php b/src/scene/render/PathDepth.php index 7f4a725..3bf6f65 100644 --- a/src/scene/render/PathDepth.php +++ b/src/scene/render/PathDepth.php @@ -14,17 +14,17 @@ class PathDepth extends BaseCfg /** * 限制 漫反射光线 最大跟踪深度为(取值:大于或等于1的整数) */ - public $diffuse = 12; + public $diffuse = 8; /** * 限制 光泽反射光线 最大跟踪深度为(取值:大于或等于1的整数) */ - public $glossy = 12; + public $glossy = 8; /** * 限制 高光反射光线 最大跟踪深度为(取值:大于或等于1的整数) */ - public $specular = 12; + public $specular = 8; } ?> diff --git a/src/scene/render/Sobol.php b/src/scene/render/Sobol.php index 0cca0e1..0a86051 100644 --- a/src/scene/render/Sobol.php +++ b/src/scene/render/Sobol.php @@ -25,7 +25,7 @@ class Sobol extends BaseCfg /** * @var integer TODO:初步判断为每像素采样的样本数其数 */ - public $overlapping = self::PROGRESSIVE; + public $overlapping = self::CACHE_FRIENDLY; /** * @var integer 这是 “$overlapping”参数的倍数,所得到的乘积就是单个像素的最大跟踪光线的数量,当渲染引擎为PATHCPU