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

Author Topic: RadialGradient Shader  (Read 8119 times)

0 Members and 1 Guest are viewing this topic.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
RadialGradient Shader
« on: July 28, 2015, 06:18:05 pm »
Just posted a shader on the Wiki to add radial gradients to untextured SFML graphics objects e.g. rectangles, circles, vertex arrays.

There is also a complete example that - using an sf::CircleShape and an sf::Rectangle - ends up displaying this:


Here's the Wiki page:
RadialGradient Shader

EDIT: changed image width to fit into the forum.
« Last Edit: July 28, 2015, 07:16:24 pm by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*