Uploaded April 2021 | Updated December 2026, 3 hours ago
By the end of this video we’ll be able to set a foreground color and a background color and have the obstacles colored on a gradient between them. At first we’ll do this the easy way by applying a new material to each object based on its position, and then I’ll show you how to do the same thing with a simple spatial (3D) shader using Godot's visual shader editor.
Godot Spatial Shaders - A Gentle Introduction: youtube.com/watch?v=edITKOiqpHE
Download the shader material: github.com/age-of-asparagus/misc-resources/blob/main/FGShaderMaterial.tres
Timestamps:
0:00 Intro
0:20 Color variables
1:49 Applying color to objects
3:53 Interpolate between colors
6:57 Interlude: go make a shader
7:35 Installing the shader material
9:27 Scaling the shader along the z-axis
13:56 Discrete colors for each row
17:57 Setting shader parameters from the level
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity
By the end of this video we’ll be able to set a foreground color and a background color and have the obstacles colored on a gradient between them. At first we’ll do this the easy way by applying a new material to each object based on its position, and then I’ll show you how to do the same thing with a simple spatial (3D) shader using Godot's visual shader editor.
Godot Spatial Shaders - A Gentle Introduction: youtube.com/watch?v=edITKOiqpHE
Download the shader material: github.com/age-of-asparagus/misc-resources/blob/main/FGShaderMaterial.tres
Timestamps:
0:00 Intro
0:20 Color variables
1:49 Applying color to objects
3:53 Interpolate between colors
6:57 Interlude: go make a shader
7:35 Installing the shader material
9:27 Scaling the shader along the z-axis
13:56 Discrete colors for each row
17:57 Setting shader parameters from the level
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity










