Wiki > TV3D65 Index > TVMesh
- Changes the various blending modes for the meshes.
ALPHA: if you want alpha transparency of an entire object by setting the material Diffuse alpha component to a value between 0 and 1, you will need to set the blending mode to ALPHA for it to become transparent. ALPHA blending mode is also required if you want to use alpha testing on the mesh, with a texture which has an alpha channel for sampling transparency of the mesh.
NONE: Some shaders will require a blending mode set to NONE in order to render colours correctly and avoid double multiplication when sampling.
| VB.NET | SetBlendingMode(eMode As CONST_TV_BLENDINGMODE , iGroup As Integer) |
|---|---|
| C++ | void SetBlendingMode(cCONST_TV_BLENDINGMODE eMode , int iGroup ) |
| NAME | OPTIONAL | DESCRIPTION |
|---|---|---|
| eMode | No | eMode description |
| iGroup | Yes | iGroup description |
| Null | Does not return a value. |
|---|
| Example | *** here is an example of loading a mesh and setting it’s alpha mode and other parameters to make it semi-transparent. |
|---|