Browse Source

渲染测式 案例 开发

master
yuanjiajia 1 year ago
parent
commit
1c02dc0f92
  1. 8
      examples/renderTest.php
  2. 2
      src/scene/render/OpenCL.php

8
examples/renderTest.php

@ -338,10 +338,10 @@ $render .= $sceneCfg;
// 图像输出设置 // 图像输出设置
$imageOutPath = $sceneTemplatePath.'/imageOut'; $imageOutPath = $sceneTemplatePath.'/imageOut';
$film = new Film(); $film = new Film();
$filter = new Filter();
$filter->type = Filter::TYPE_GAUSSIAN;
$filter->gaussianAlpha = 2.0;
$film->filter = $filter;
// $filter = new Filter();
// $filter->type = Filter::TYPE_GAUSSIAN;
// $filter->gaussianAlpha = 2.0;
// $film->filter = $filter;
$film->width = 2048; $film->width = 2048;
$film->heigth = 2048; $film->heigth = 2048;

2
src/scene/render/OpenCL.php

@ -9,7 +9,7 @@ class OpenCL extends BaseCfg
/** /**
* @var bool 是否使用cpu渲染,默认是 * @var bool 是否使用cpu渲染,默认是
*/ */
public $cpuUse = self::CLOSE;
public $cpuUse = self::OPEN;
/** /**
* @var bool 是否使用gpu渲染,默认否 * @var bool 是否使用gpu渲染,默认否

Loading…
Cancel
Save