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.2 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. echo $path;
  13. //设置打印 采样器 配置参数
  14. $sampler = new Sampler();
  15. echo $sampler;
  16. //设置打印 灯光策略 配置参数
  17. $lightStrategy = new LightStrategy();
  18. echo $lightStrategy;
  19. //设置打印 文件储存格式 配置参数
  20. $filesaver = new FileSaver();
  21. echo $filesaver;
  22. //设置打印 渲染终止 配置参数
  23. $batch = new Batch();
  24. echo $batch;
  25. //设置打印 场景属性 配置参数
  26. $scene = new Scene();
  27. echo $scene;
  28. //设置打印 “胶片” 配置参数
  29. $film = new Film();
  30. $film->outputs[] = new file\ImageSaver(['type' => file\ImageSaver::TYPE_RGBA ]);
  31. $film->outputs[] = new file\ImageSaver(['type' => file\ImageSaver::TYPE_MATERIAL_ID ]);
  32. $film->outputs[] = new file\ImageSaver(['index' => 5 ]);
  33. $film->imagepipelines[5] = [new effect\NoiseReducerOIDN(),new effect\Pretreatment(),new effect\ToneMapLinear(),new effect\AnalogFilmSimulation(),new effect\CammaCorrection()];
  34. echo $film;
  35. ?>