TextureAttribute::SetTextureBlendMode
Defined in:
Sets the texture blend mode.
C4Attributes.h
Prototype
void SetTextureBlendMode(TextureBlendMode mode);
Parameters
mode |
The new texture blend mode. |
Description
The SetTextureBlendMode
function sets 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