• Advertisement

Archived

This topic is now archived and is closed to further replies.

lit vertices with the same alpha-value

This topic is 5488 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some lit vertices, but now I need to change the alpha-value of my whole mesh without going through all vertices and changing the value manually. I thought of using materials, but I couldn''t use the material without loosing all my vertex-color informations

Share this post


Link to post
Share on other sites
Advertisement
SetTSS( stage, D3DTSS_ALPHAOP, D3DTOP_MODULATE );
SetTSS( stage, D3DTSS_ALPHAARG1, D3DTA_TEXTURE );
SetTSS( stage, D3DTSS_ALPHAARG2, D3DTA_TFACTOR );
SetRS( D3DRS_TEXTUREFACTOR , 0xAA FFFFFF );


--
Simon O'Connor
Creative Asylum Ltd
www.creative-asylum.com

[edited by - S1CA on February 10, 2003 8:02:02 AM]

Share this post


Link to post
Share on other sites

  • Advertisement