Interface: IRenderStates

查看 llm.txt

最后一次编辑于 2026-10-22

支持定制的渲染状态。

大部分状态会定制的开发者应该看名字就懂,就不详细说明了。

Table of contents

Properties

Properties

blendDst

• Optional blendDst: EBlendFactor

不要使用,使用blendDstRGB。


blendDstAlpha

• Optional blendDstAlpha: EBlendFactor


blendDstRGB

• Optional blendDstRGB: EBlendFactor


blendFunc

• Optional blendFunc: EBlendEquation


blendOn

• Optional blendOn: boolean


blendSrc

• Optional blendSrc: EBlendFactor

不要使用,使用blendSrcRGB。


blendSrcAlpha

• Optional blendSrcAlpha: EBlendFactor


blendSrcRGB

• Optional blendSrcRGB: EBlendFactor


colorWrite

• Optional colorWrite: number

在基础库版本v2.31.1以上支持。


cullFace

• Optional cullFace: ECullMode


cullOn

• Optional cullOn: boolean


depthTestComp

• Optional depthTestComp: ECompareFunc


depthTestOn

• Optional depthTestOn: boolean


depthWrite

• Optional depthWrite: boolean


primitiveType

• Optional primitiveType: EPrimitiveType


renderQueue

• Optional renderQueue: number

渲染队列,大于等于2500为透明物体,否则为非透明物体。


stencilComp

• Optional stencilComp: ECompareFunc


stencilFail

• Optional stencilFail: EStencilOp


stencilPass

• Optional stencilPass: EStencilOp


stencilReadMask

• Optional stencilReadMask: number


stencilRef

• Optional stencilRef: number


stencilTestOn

• Optional stencilTestOn: boolean


stencilWriteMask

• Optional stencilWriteMask: number


stencilZFail

• Optional stencilZFail: EStencilOp