This project aims to help Godot developers writing custom written shaders by providing high-level functions which are often used.
Download the source (releases and AssetLib version are still WIP) and put the ShaderFunction-Extras
inside
your addons
folder. If you don't have one, create it or put the whole addons folder inside your project directory.
This repository is only meant for projects created with Godot 4.0 and upwards. However, if you are using Godot 3.x and want to use specific functions, you can copy and paste it inside your shader code still.
All these shader functions are based on publicly available shader functions (open-source licensed with permissive licenses such as MIT). If you want to contribute a function, create an issue starting with Proposal: ...
describing the shader function and why you think it should be included in here. We can then discuss on how this function and its parameters should be called (for clarity of the users). After that you are open to create a PR (Pull Request) with the dicussed details of the proposal.