Sign in to follow this  
amr eshra

how can i light a Texture2D ??

Recommended Posts

amr eshra    100
i put a photo in the game and i want to light it (when the mouse cursor come on it) as i put a torch on it. IN XNA thanks in advanced [Edited by - amr eshra on February 20, 2008 9:10:15 AM]

Share this post


Link to post
Share on other sites
Daivuk    413
Or:

render the light quad (Just a radiant gradient) with the color of the light.
Then multiply your texture on it.

Pixel shaders might be overkill to acheive that.

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