跳到主要内容

PropDecl

Ploy3D • Docs


Ploy3D / PropDecl

Interface: PropDecl

材质属性声明信息。

Properties​

format​

format: PropFormat

格式。


name​

name: string

名称。


note​

note: string

提示。


sampler?​

optional sampler: number

如果是采样设置字段,则记录采样器索引。


sign​

sign: string

签名。


texture?​

optional texture: number

如果是贴图UUID字段,则记录贴图索引。


type​

type: PropType

类型。


value​

value: number[]

默认值。