Jump to content
  • Advertisement
Sign in to follow this  
tlc660

DirectX3D.Sprite : Texture Effect

This topic is 4356 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!