Hi everyone!
I’m pretty new to shaders and definitely not an expert, but I’ve noticed there aren’t many public, reusable shader examples for Defold. So I decided to try and share one myself.
This is a small experiment: I ported a ShaderToy effect to Defold and wrapped it as a tiny library + example scene.
-
Original ShaderToy: https://www.shadertoy.com/view/ldlXRS
-
GitHub repo: https://github.com/zarkua/Noise-animation-Electric
-
Live HTML5 demo (GitHub Pages): https://zarkua.github.io/Noise-animation-Electric/
It’s very simple, but it builds and runs on GitHub Pages thanks to @aglitchman @agulev, and the repo includes an example project so you can check it quickly. The library is exposed via /shader (configured through library.include_dirs), and the code is released under CC0 (public domain) so feel free to use/adapt it.
I would really appreciate any comments, suggestions, or improvements—especially from people more experienced with Defold materials, best practices for uniforms, and general shader structuring. I’m sharing this to learn and to help grow a small pool of open shader examples for the community.
also i found out that someone made it even better