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.

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