**/!\ WARNING:** This project is in the process of being ported to Godot 4. If you want get a copy of the working project for Godot 3, [head to the last Godot 3 release](https://github.com/gdquest-demos/godot-shaders/releases/tag/1.0.0). If you want to help, see [Tracker and guide: Update to Godot 4.3](https://github.com/gdquest-demos/godot-shaders/issues/53). # Godot Shaders ![project banner](./img/banner-shader-secrets.png) Godot Shaders is a repository of Free shaders, part of which we made for our course [Godot Shader Secrets](https://gdquest.mavenseed.com/courses/godot-shader-secrets). ➡ Follow us on [Twitter](https://twitter.com/NathanGDQuest) and [YouTube](https://www.youtube.com/c/gdquest/) for free game creation tutorials, tips, and news! Get one of our [Godot game creation courses](https://gdquest.mavenseed.com/) to support our work on Free Software. ![2D dissolve shader, showing a character burning](./img/robi-in-flames.png) ## The shaders Here's a list of available shaders and demos. ### 3D Shaders ![Stylized fire shader](img/stylized-fire.png) - 3D dissolve - 3D outline - 3D shockwave - 3D stylized fire - Advanced toon shader - Force field - Stencil mask (impossible cube) - Stylized fire - Stylized bottled liquid - Interactive snow - Unlit directional tint - Texture mixing methods - Stylized waterfall shader - Spherical mask shader - Particle bridge: process to canvas_item/spatial communication ### 2D Shaders ![2D water shader with light support](./img/water2d.png) - 2D baked-in-texture glow control - 2D clouds: noise-based cloud shadows cast over the game world - 2D dissolve - 2D glow - 2D outline - 2D palette swap - 2D reflection - 2D water for side-scrolling games - 2D water in top-down view - 2D x-ray (masking) ### Screen shaders - Gaussian blur - Inverted colors - Pointilism - Screen distortion (2D shockwave) ## How to use You can find the shaders in the `Shaders/` directory. Most shaders come with a demo scene. All demos are in the `Demos/` directory. The `Intro/` directory contains an intro animation to the shader pipeline, that we use in our shader course. ## Contributing Contributors are welcome! If you encounter a bug, please [open an issue](https://github.com/GDQuest/godot-game-harvester/issues/new). If you want to contribute to the project, for instance by fixing a bug or adding a feature, check out our: 1. [Contributor guidelines](https://www.gdquest.com/docs/guidelines/contributing-to/gdquest-projects/). 1. [GDScript style guide](https://www.gdquest.com/docs/guidelines/best-practices/godot-gdscript/) ## Credits Stylized fire adapted from a Unity tutorial by [@minionsart](https://twitter.com/minionsart/).