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

<?php
namespace Blobt\Luxcore\scene\texture\map;
use Blobt\Luxcore\scene\texture\TextureBase;
use Blobt\Luxcore\scene\Scene;
use Blobt\Luxcore\core\Base;
use Blobt\Luxcore\scene\texture\mapping\Mapping;
class ImageMap extends TextureBase
{
const TYPE_IMAGEMAP = 'imagemap';
/**
* @var string 光域网文件名及路径,如果为空,则表示不使用光域网
*/
public $file;
/**
* @var string 亮度增益,当发光强度单位是 artistic 类型时,或是 坎德拉类型且坎德拉参数下勾选为(每平方米时),可以设置此参数,分别
* 控制自发光颜色RGB三个通道的放大倍数;否则固定为 1 1 1
*/
public $gain = "1 1 1";
/**
* @var float 校正光域网文件的gamma值,(固定取值:1)
*/
public $gamma;
/**
* @var bool 是否随机重复
*/
public $randomizedtilingEnable = false;
/**
* @var object 铺贴参数,一个Mapping类对象
*/
public $mapping;
/**
* @var string 输出图片储存方式
*/
public $storage = 'byte';
/**
* @param object $mapping 必须传入一个 Mapping类对象
*/
public function __construct(Mapping $mapping,$config = [])
{
$this->mapping = $mapping;
$this->type = self::TYPE_IMAGEMAP;
$this->id = Scene::createID();
Base::__construct($config);
}
}
?>