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

Author Topic: RadialGradient Shader  (Read 4086 times)

0 Members and 1 Guest are viewing this topic.

Hapax

  • Hero Member
  • *****
  • Posts: 3047
  • My number of posts is shown in hexadecimal.
    • View Profile
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
Kairos - Timing Library
Rectangular Boundary Collision - Rectangular SAT Collision

@Hapaxiation - Hapaxia on Twitter