Browse Source

渲染测式 案例 开发

master
yuanjiajia 1 year ago
parent
commit
76fad2b9f5
  1. 13
      examples/renderTest.php

13
examples/renderTest.php

@ -340,12 +340,15 @@ $render .= $sceneCfg;
// 图像输出设置 // 图像输出设置
$imageOutPath = $sceneTemplatePath.'/imageOut'; $imageOutPath = $sceneTemplatePath.'/imageOut';
$film = new Film(); $film = new Film();
// $filter = new Filter();
// $filter->type = Filter::TYPE_GAUSSIAN;
$filter = new Filter();
$filter->type = Filter::TYPE_BLACKMANHARRIS;
// $filter->gaussianAlpha = 2.0; // $filter->gaussianAlpha = 2.0;
// $film->filter = $filter;
$film->width = 2048;
$film->heigth = 2048;
$filter->width = 1;
$film->filter = $filter;
$film->width = 4096;
$film->heigth = 4096;
$img = new Image(); $img = new Image();
$img->effect = [new Pretreatment(),new ToneMapLinear(),new CammaCorrection()]; $img->effect = [new Pretreatment(),new ToneMapLinear(),new CammaCorrection()];

Loading…
Cancel
Save