Matt MacLaurin - MSFT

Does BasicEffect give you control over alpha blend modes such that I can use an alpha channel

I searched on the forums and found some references to blend modes for sprite batches, but this is just for a straight up model.

I'm using a single PNG with RGB and A from photoshop, applied properly in Max as both diffuse and opacity maps, etc.

I only see the rgb channels in XNA.

I know I can do this with a shader but would like to know if BasicEffect can do this.



Re: XNA Game Studio Express alpha channel in basiceffect

Fluxtah

Yes BasicEffect does do this its accessed through its own property called Alpha.





Re: XNA Game Studio Express alpha channel in basiceffect

Matt MacLaurin - MSFT

I actually needed a texture-based alpha channel - a different alpha value for each pixel. I believe the Alpha property is a single value for the entire texture.