BlendState
Represents the blend state for color blending in the rendering pipeline.
| Type | Name | Interface Description |
|---|---|---|
| Variables | alphaBlendOperation: BlendOperation | • Function: The blend operation for alpha blending in the first color attachment in the blend state. Returns The alpha blend operation. |
| Variables | colorBlendOperation: BlendOperation | • Function: The blend operation for the first color attachment in the blend state. Returns The color blend operation. |
| Variables | dstAlphaFactor: BlendFactor | • Function: The destination alpha blend factor for the first color attachment in the blend state. Returns The destination alpha blend factor. |
| Variables | dstColorFactor: BlendFactor | • Function: The destination color blend factor for the first attachment in the blend state. Returns The destination color blend factor. |
| Variables | enabled: boolean | • Function: Indicates whether blending is enabled for the color attachment state. Returns True if blending is enabled, false otherwise. |
| Variables | srcAlphaFactor: BlendFactor | • Function: The source alpha blend factor for the first color attachment in the blend state. Returns The source alpha blend factor. |
| Variables | srcColorFactor: BlendFactor | • Function: The source color blend factor for the first attachment in the blend state. Returns The source color blend factor. |
| Functions | constructor() | • Function: Constructs a BlendState object. Parameters • |
Examples
constructor()
let obj = new APJS.BlendState();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use BlendState here
}
onUpdate(deltaTime: number) {
}
}