RenderPass
Ploy3D / RenderPass
Interface: RenderPass
渲染通道接口。
Table of contents
Properties
Properties
commonFrag
• Optional
Readonly
commonFrag: string
[]
渲染通道片元着色器公共模板代码。
commonVert
• Optional
Readonly
commonVert: string
[]
渲染通道顶点着色器公共模板代码。
index
• Readonly
index: number
通道序号。
label
• Readonly
label: string
通道名称。
layerMask
• Readonly
layerMask: number
渲染层掩码,用于在渲染前过滤对象。
mode
• Readonly
mode: "shading"
| "postprocess"
| "compute"
通道所用着色器类型。
shaderMacro
• Readonly
shaderMacro: Shader_macro
着色器通道宏定义。
shaderPassDesc
• Optional
Readonly
shaderPassDesc: GLRenderPipelineDescriptor
着色器通道配置(用于创建着色器通道)。
shaderSpec
• Optional
Readonly
shaderSpec: number
指定固定使用的着色器ID,旨在减少着色器编译数量。
sortingCriteria
• Readonly
sortingCriteria: number
渲染排序方法(多重方法标志集,越低位权重越高)。