|
CommonStatesGetRecommendedBlendState Method |
Returns a recommended BlendState based on the hasTransparency and hasPreMultipliedAlpha parameters.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax public BlendState GetRecommendedBlendState(
bool hasTransparency,
bool hasPreMultipliedAlpha = true
)
Parameters
- hasTransparency Boolean
- true when the texture has transparent or semi-transparent pixels (alpha color is less then 1)
- hasPreMultipliedAlpha Boolean (Optional)
- true (by default) when the texture is using a pre-multiplied alpha colors (rgb colors are multiplied by the alpha - for example a 50% transparent red color is: r=0.5, b=0, g=0, a=0.5)
Return Value
BlendStaterecommended BlendState based on the hasTransparency and hasPreMultipliedAlpha parameters
See Also