Asset_material
Ploy3D / Asset_material
Interface: Asset_material
材质资源。
Hierarchy
↳
Asset_material
Table of contents
Properties
Properties
classid
• Optional
classid: number
资源实例类型ID(资源包装载时指定)。
Inherited from
flags
• flags: number
渲染设置标记集(RenderSettingsFlag)。
guid
• guid: string
全球唯一ID。
Inherited from
label
• label: string
用户可理解的外部标签。
Inherited from
name
• name: string
内部名称(同级唯一,优先使用名称在同级中查找)。
Inherited from
properties
• properties: Object
材质属性集。
Type declaration
Name | Type | Description |
---|---|---|
textures | Record <string , Asset_wrapper_texture > | 贴图属性清单。 |
vectors | Record <string , number []> | 向量属性清单。注意:标量被视为一维向量。 |
shader
• shader: string
材质着色器URI。
typename
• typename: string
资源类型名称。