how can i light a Texture2D ??
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]
Write a pixel shader, pass the current mouse coordinates to it, and have the color it returns dependent on that.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement