--- description: "My findings while playing around with fragment shaders" created: 2025-01-04 --- **Shader eye candy** if you do not see the image above, check if your browser supports webgl, at: [caniuse.com/webgl](https://caniuse.com/webgl) I'll link the resources i used as an introduction to the subject, hence this serves as an OK starting point. ## How to get started 1. Browse [shadertoys.com](https://www.shadertoy.com/results?query=&sort=popular&filter=), and be inspired. 2. Step 2 realise that it's coded in the forbidden tounge of black magic "enchantment book" moon runes. That some people call... math *queue ominous thunder effect* 3. Watch this video [Introduction to shaders: Learn the basics! by Barney Codes - youtube.com](https://www.youtube.com/watch?v=3mfvZ-mdtZQ) (a few times) To learn the basics. 4. Realise the ancient magic is is not reserved for only wizards and high elves alike. On the contrary like with most things, you'll find that it's quite surmountable, if you break the subject matter down into bite sized pieces. 6. On this note i present to you a cheat sheets that lists the functions available to you: [A cheat sheet of which functions can be called - http://learnwebgl.brown37.net](http://learnwebgl.brown37.net/12_shader_language/documents/webgl-reference-card-1_0.pdf) (see page 4) 7. The grind - Put in the legwork playing around with this newfound knowledge. This part is the hardest, and most frustratin, as you put in a lot of work into making the most basic of things. But if you keep it up, you'll eventually make something that looks halfway decent. After a few days of playing around using the knowledge gained from the video linked above, i was able to code [what you see above](#my-canvas). Albeit i have a background as a developer. All this is to say, tamper you expectations before getting into the subject matter, it takes some time before you make something halfway decent, and i still am not able to bring all my ideas to fruition. You'll often times find that you accidentally create something interesting, just by faffing about with mathematical functions. On that not you can [view my shaders here](https://node5.net/shader_indexes/my_shaders/)