Sign in to follow this  

DirectX3D.Sprite : Texture Effect

This topic is 4133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

This topic is 4133 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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