Category: shaders
-
Make Fireball Shader in Godot
Another fire shader for project I was working on. Tutorial will be updated later. I originally took it from this shadertoy and modified it. Shader Code Thank you for reading <3
-
Thunder Lightning Strike Shader for Godot
Originally based on this shader for 2D lightning. I added some more controls such as thickness and modified it to add alpha on areas other than lightning. Breakdown The full code is at the end of the post. Here I’m explaining some important parts of it. Main part uv += 2.0 * fbm(uv + TIME…
-
2D dissolve shader with edge burn (burning paper shader)
2D edge burn shader for Godot 4. adding more electrical effect: Breakdown
-
Sci-fi Engine Thrust Shader
Sci fi engine thruster VFX shader for Godot 4. Jet engine exhaust flame/propulsion. Breakdown We will start with the simple effect, and will add details to it with time. Start with Simple Gradient The first step is to make a gradient spanning across the mesh. One end of the mesh should be transparent (its ALPHA…
-
Fast Travel Shader (Speed Lines)
3D Fast travel shader (speed lines shader) for Godot 4. Sci-fi effects. Breakdown Start with gradient Similar to how I did in jet engine exhaust shader tutorial; initially, we just make our mesh transparency gradient, thus one end becomes transparent (alpha=0) and other end alpha=1. For this, we calculate vertex height in the vertex shader…
-
Fire Shader
Godot fire shader tutorial. This fire shader has some good options to make it both stylized & normal fire. You can download the project here to play with it and make changes. Fire is quite an interesting thing in a game to add feeling. I was interested in making a fire shader since I saw…
-
Ray Marching
Cover image credit: https://www.shadertoy.com/view/4slGD4 Ray marching is a method in which rays are started from camera into the game world. The ray keeps traveling forward in a loop, one step at a time, until it hits a surface. The surface here is not polygon, but a math function. This can work entirely in a fragment…
-
Dot Matrix Shader (LED Screen Effect)
It is a screen-space shader; we can replace the background black with some other color to simulate the tint & theme to make our scene more immersive. Shader breakdown: Godot Shader Code More Links
-
3D Grass Shader with Distortion & Wind
In a Nutshell Player interact distortion: Calculate a vector that points away from player position & assign it to the vertex. This will move the vertex away from player position. This is the core concept behind grass distortion due to player standing on it. (Yes, in reality, you’ll need to normalize this vector, and only apply…