跳到主要内容

Asset_texture

Ploy3D • Docs


Ploy3D / Asset_texture

Interface: Asset_texture

贴图资源描述符。

Extends​

Properties​

bitmap?​

optional bitmap: GLTextureSource

位图资源。


classid​

classid: number

资源类型ID。

Inherited from​

Asset.classid


has_alpha?​

optional has_alpha: boolean

是否包含A通道。


label​

label: string

用户可理解的外部标签。

Inherited from​

Asset.label


map_gamma?​

optional map_gamma: number

表示图像灰度系数的浮点数(小于或等于0则由程序计算出)。


mime?​

optional mime: string

贴图类型。


name​

name: string

内部名称(同级唯一,优先使用名称在同级中查找)。

Inherited from​

Asset.name


uri?​

optional uri: string

贴图文件URI(如果未设置则从UUID加载)。


uuid​

uuid: string

全局唯一ID。

Inherited from​

Asset.uuid