SFML community forums
Help => Graphics => Topic started by: SFMLNewGuy on January 04, 2022, 03:48:08 am
-
I just had a quick question? How do people typically figure out different types of shader effects (2D)? Say you want an explosion, or a wind effect, or a fountain? How do people figure this out? Do they just find out the formulas that emulate X type of effect?
Is there a general place where you can find templates of just about anything you can think of? Like a plug-in-play almost where you can fiddle with the variables?
Thanks.
-
I found some examples online by googling webgl shaders… webgl-shaders.com had a rain effect in the fragment shader. The other site comes to mind is shadertoy not that I’ve played much with shaders personally.
-
There are also tons of examples on shadertoys (https://www.shadertoy.com/).
You can also do the math to figure out how things need to be moved, but it's usually simpler to just find an example.