Sign in to follow this  
tlc660

DirectX3D.Sprite : Texture Effect

Recommended Posts

me done my first C# game with Direct3D.Sprite class. and me are trying to apply some effect to my game sprite like brightness and tint. but me have found no where to achieve. is there any solution for that(brightness and tint)? thank you very much.

Share this post


Link to post
Share on other sites
IIRC the last parameter in the sprite draw function is a colour that can be used to modulate the texture. Tint could be tried and, I have not tried this, but maybe a gray scale colour would provide brightness.

Share this post


Link to post
Share on other sites
me have play around with the last parameter in the sprite draw
but is seem only adjust the color volume
Color.FromArgb(255,255,128,128);
return 100% of original color volume for alpha and red channel, and 50% of original volume for the green and blue channel.

anyway thankyou for reply me

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