API reference
API reference
Select your platform
No SDKs available
No versions available

LayerAlphaBlend

LayerAlphaBlend

data class LayerAlphaBlend(val sourceFactorColor: BlendFactor, val destinationFactorColor: BlendFactor, val sourceFactorAlpha: BlendFactor, val destinationFactorAlpha: BlendFactor)
Defines the coefficients of how to blend the layer (using an add operation). "Source" refers to the layer you are currently compositing and "destination" refers to whatever is already in the buffer. This compositing can be modeled by:
finalColor = (sourceColor * sourceFactorColor) + (destinationColor * destinationFactorColor) finalAlpha = (sourceAlpha * sourceFactorAlpha) + (destinationAlpha * destinationFactorAlpha)

Constructors

NameSummary
LayerAlphaBlend
constructor(sourceFactorColor: BlendFactor, destinationFactorColor: BlendFactor, sourceFactorAlpha: BlendFactor, destinationFactorAlpha: BlendFactor)

Properties

NameSummary
destinationFactorAlpha
val destinationFactorAlpha: BlendFactor
destinationFactorColor
val destinationFactorColor: BlendFactor
sourceFactorAlpha
val sourceFactorAlpha: BlendFactor
sourceFactorColor
val sourceFactorColor: BlendFactor
Did you find this page helpful?
Thumbs up icon
Thumbs down icon