C4 Engine
C4 Engine API Documentation

TextureAttribute::GetTextureBlendMode

Defined in:  C4Attributes.h
Returns the texture blend mode.
Prototype

TextureBlendMode GetTextureBlendMode(voidconst;

Description
The GetTextureBlendMode function returns the mode used when blending two diffuse texture maps in a material. The blend mode can be one of the following constants.
kTextureBlendAdd Add the texture values.
kTextureBlendAverage Average the texture values.
kTextureBlendMultiply Multiply the texture values.
kTextureBlendVertexAlpha Blend the texture values using the interpolated vertex alpha.
kTextureBlendPrimaryAlpha Blend the texture values using the alpha channel from the primary texture.
kTextureBlendSecondaryAlpha Blend the texture values using the alpha channel from the secondary texture.
kTextureBlendPrimaryInverseAlpha Blend the texture values using the inverse of the alpha channel from the primary texture.
kTextureBlendSecondaryInverseAlpha Blend the texture values using the inverse of the alpha channel from the secondary texture.
See Also

TextureAttribute::SetTextureBlendMode