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.

60 lines
1.4 KiB

  1. <?php
  2. namespace Blobt\Luxcore\scene\texture\map;
  3. use Blobt\Luxcore\scene\texture\TextureBase;
  4. use Blobt\Luxcore\scene\Scene;
  5. use Blobt\Luxcore\core\Base;
  6. use Blobt\Luxcore\scene\texture\mapping\Mapping;
  7. class ImageMap extends TextureBase
  8. {
  9. const TYPE_IMAGEMAP = 'imagemap';
  10. /**
  11. * @var string 光域网文件名及路径,如果为空,则表示不使用光域网
  12. */
  13. public $file;
  14. /**
  15. * @var string 亮度增益,当发光强度单位是 artistic 类型时,或是 坎德拉类型且坎德拉参数下勾选为(每平方米时),可以设置此参数,分别
  16. * 控制自发光颜色RGB三个通道的放大倍数;否则固定为 1 1 1
  17. */
  18. public $gain = "1 1 1";
  19. /**
  20. * @var float 校正光域网文件的gamma值,(固定取值:1)
  21. */
  22. public $gamma;
  23. /**
  24. * @var bool 是否随机重复
  25. */
  26. public $randomizedtilingEnable = false;
  27. /**
  28. * @var object 铺贴参数,一个Mapping类对象
  29. */
  30. public $mapping;
  31. /**
  32. * @var string 输出图片储存方式
  33. */
  34. public $storage = 'byte';
  35. /**
  36. * @param object $mapping 必须传入一个 Mapping类对象
  37. */
  38. public function __construct(Mapping $mapping,$config = [])
  39. {
  40. $this->mapping = $mapping;
  41. $this->type = self::TYPE_IMAGEMAP;
  42. $this->id = Scene::createID();
  43. Base::__construct($config);
  44. }
  45. }
  46. ?>