Browse Source

渲染测式 案例 开发

master
yuanjiajia 1 year ago
parent
commit
a8bb1bd50d
  1. 4
      examples/renderTest.php
  2. 1
      src/scene/render/Film.php

4
examples/renderTest.php

@ -342,8 +342,8 @@ $imageOutPath = $sceneTemplatePath.'/imageOut';
$film = new Film();
$filter = new Filter();
$filter->type = Filter::TYPE_BLACKMANHARRIS;
// $filter->gaussianAlpha = 2.0;
$filter->type = Filter::TYPE_GAUSSIAN;
$filter->gaussianAlpha = 1;
$filter->width = 1;
$film->filter = $filter;

1
src/scene/render/Film.php

@ -82,6 +82,7 @@ class Film extends BaseCfg
$object->index = $i + 1;
if ($object->effect != null){
$this->imagepipelines[ sprintf("%03d",$object->index) ] = $object->effect;
$object->effect = null;
}
if(!$object->filename){
$object->filename = "{$nowTime}_{$object->type}_{$object->index}";

Loading…
Cancel
Save