ShaderLib is a library of shader for the godot engine.
It allow you to easly look at shader you have, and allow you to reuse them easly.
Actually are 10 shaders in the list :
- Interrior Mapping.
- Fresnel effect.
- Dissolve.
- Hologram.
- Chromatic aberrations.
- Outline grid.
- Atmosphere.
- Galaxy.
- Glitch.
- Refractive.
To add you own shader easly you have to follow these simple steps :
- Create a folder in the
shaders
folder with the name of your new shader. - Duplicate the demo scene from
template_blank_scene
and moving this new scene in your folder. - Be sure to make the mesh from your scene unique.
- Create and add your shader.
- Duplicate a shaderBtn from the
Menu
scene, put the name of you shader as text and edit the pressed event to modify the value of the arg binded to be the name of your shader. - In the
Viewport
node of theMenu
scene add a new entry to the Dictionary with the name of your shader as key and the scene you have created as object