AssetMaterial数据接口。
Table of contents
Properties
Properties
assetId
• assetId: string
被引用时的资源Id。
xml中的数据类型为string。
effect
• effect: Effect
基于的效果。
xml中的数据类型为effect资源,默认为simple。
envData
• Optional envData: EnvData
用于覆盖全局的、材质维度的环境数据。
renderQueue
• renderQueue: number
要覆盖的渲染顺序。
xml中的数据类型为number,无默认值。
大于等于2500视为透明物体。
states
• states: [string, string][]
初始要写入的渲染状态states。
xml中的数据类型为map。
目前支持renderQueue、cullOn、depthTestOn、depthTestWrite、alphaMode、alphaCutOff。
alphaMode和alphaCutOff遵循glTF标准。
uniforms
• uniforms: [string, string][]
初始要写入的uniforms,类型根据effect中的定义决定。
xml中的数据类型为map。