Playing with Shaders in Godot 4
In this chapter, we start with looking at the Shader Creation dialog to create shaders and also look at the new features in the shader language in Godot 4. We will examine how to use Global Uniforms and Instance Uniforms with shaders. With visual shaders, we start by looking at the Visual Shaders Context menu.
We will work with Integer and Comment nodes. We create nodes using Texture3D and CurveTexture. We look at the Billboard and UVFunc nodes. We play with the Sky Shader mode to create sky shaders. We will examine the Fog Shader mode to see what we can do with it.
In this chapter, we will cover the following recipes:
- Creating shaders with the Shader Creation dialog
- Exploring Uniform Arrays in the Godot 4 shader language
- How to use Global Uniforms
- Using Instance Uniforms with shaders
- Exploring the Visual Shaders Context menu
- Working with Integer and Comment nodes
- Creating nodes using Texture3D and CurveTexture ...