Sign in to follow this  
Naice

[XNA 4.0] Blending Texture with AlphaMap

Recommended Posts

Naice    100
Hi,

i want to know if it's possible to draw a texture where the alpha channel comes from a seperate texture with the spritebatch class. (alphamap?)
the alphamap will be changed during the game (destructable terrain)

here some pictures to illustrate what i mean:

Alphamap:
[img]http://dl.dropbox.com/u/7499473/map01_a.png[/img]

Texture:
[img]http://dl.dropbox.com/u/7499473/map01_t.png[/img]

thats what the result should be :
[img]http://dl.dropbox.com/u/7499473/map01_result.png[/img]

sry for my bad english

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this