Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Transform Image
Print
Pages: [
1
]
Author
Topic: Transform Image (Read 1131 times)
0 Members and 1 Guest are viewing this topic.
flashrocket
Newbie
Posts: 21
Transform Image
«
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.
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
Re: Transform Image
«
Reply #1 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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Transform Image