SFML community forums

Help => General => Topic started by: flashrocket on May 01, 2014, 08:07:13 am

Title: Transform Image
Post by: flashrocket on May 01, 2014, 08:07:13 am
Is there some way to lighten an image or texture?
what im to do is make a sprite more white when mouse is hovered over it.
Title: Re: Transform Image
Post by: Nexus on May 01, 2014, 09:48:49 am
You could either use a fragment shader, or simply change the color of the sprite. In the latter case, you may want to experiment with different blend modes -- use the latest master branch on GitHub, we have just added that functionality.