Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Transform Image  (Read 944 times)

0 Members and 1 Guest are viewing this topic.

flashrocket

  • Newbie
  • *
  • Posts: 21
    • View Profile
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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: