C3DMesh::SetAlphaArg1

Top  Previous  Next

Syntax:

 

SetAlphaArg1(int  texStage, UINT  dwArg)

 

Purpose:

Sets the first alpha argument for the specified texture stage.

 

Parameters:

texStage - The texture stage (0-7) that this argument applies to.

dwArg - The argument to set.

 

Returned value(s):

None.

 

Application:

ret.SetAlphaArg1(0, D3DTA_DIFFUSE)
ret.SetAlphaOperation(0, D3DTOP_SELECTARG1)

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

Used for advanced multi texturing control. dwArg can be one of:

 

D3DTA_CURRENT - Use the result of the previous texture stage, for the 0th stage, it is the same as D3DTA_DIFFUSE

D3DTA_DIFFUSE  - Use the diffuse alpha estimated from the vertices' diffuse colors in Gouraud shading process

D3DTA_SPECULAR - Use the specular alpha estimated from the vertices' diffuse colors in Gouraud shading process

D3DTA_TEXTURE   - Use the texture alpha of this texture stage

 

The default argument is D3DTA_CURRENT. If no texture is set for this stage, the default argument is D3DTA_DIFFUSE.

 

See Also:

SetAlphaArg2