Deprecated: Function split() is deprecated in /home/wiki/public_html/inc/common.php on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/wiki/public_html/inc/common.php:533) in /home/wiki/public_html/inc/actions.php on line 71
tvmesh:setblendingmode [TV3DWiki]
 

Wiki > TV3D65 Index > TVMesh

SetBlendingMode

DESCRIPTION

- 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.

DECLARATION

VB.NET SetBlendingMode(eMode As CONST_TV_BLENDINGMODE , iGroup As Integer)
C++ void SetBlendingMode(cCONST_TV_BLENDINGMODE eMode , int iGroup )

PARAMETERS

NAMEOPTIONALDESCRIPTION
eModeNoeMode description
iGroupYesiGroup description

RETURN VALUE

Null Does not return a value.

EXAMPLES

Example*** here is an example of loading a mesh and setting it’s alpha mode and other parameters to make it semi-transparent.

TIPS

  • Please add any notes or tips for this method.
 
tvmesh/setblendingmode.txt · Last modified: 2011/07/01 10:11 by 212.178.237.216