Blender渲染
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. <?php
  2. namespace Blobt\Luxcore\scene;
  3. include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
  4. //设置打印 渲染引擎 的配置参数
  5. $renderEngine = new RenderEngine();
  6. echo $renderEngine;
  7. //设置打印GPU渲染设备的配置参数
  8. $openCL = new OpenCL();
  9. echo $openCL;
  10. //设置打印光线跟踪的配置参数
  11. $path = new Path();
  12. $path->photonGI = new cache\PhotonGI();
  13. echo $path;
  14. //设置打印 采样器 配置参数
  15. $sampler = new Sampler();
  16. echo $sampler;
  17. //设置打印 灯光策略 配置参数
  18. $lightStrategy = new cache\LightStrategy();
  19. echo $lightStrategy;
  20. //设置打印 文件储存格式 配置参数
  21. $filesaver = new FileSaver();
  22. echo $filesaver;
  23. //设置打印 渲染终止 配置参数
  24. $batch = new Batch();
  25. $batch->useNoiseThreshold();
  26. echo $batch;
  27. //设置打印 场景属性 配置参数
  28. $scene = new Scene();
  29. echo $scene;
  30. //设置打印 “胶片” 配置参数
  31. $film = new Film();
  32. $film->outputs[] = new file\ImageSaverBase(['type' => file\ImageSaverBase::TYPE_RGBA ]);
  33. $film->outputs[] = new file\ImageSaverBase(['type' => file\ImageSaverBase::TYPE_MATERIAL_ID ]);
  34. $film->outputs[] = new file\ImageSaverNumber(['index' => 2 ]);
  35. $film->imagepipelines['002'] = [new effect\NoiseReducerOIDN(),new effect\Pretreatment(),new effect\ToneMapLinear(),new effect\AnalogFilmSimulation(),new effect\CammaCorrection()];
  36. echo $film;
  37. ?>