Subscribe to GameFromScratch on YouTube Support GameFromScratch on Patreon Join the GFS Discord Server!

Godot Tutorial Series -- Shaders and Materials

In this video we start off learning how to create SpatialMaterials and apply texture maps to create modern PBR based materials.  We then move on and learn how to create shaders in Godot, both vertex and fragment shaders are covered.

The Video

Code Samples

Fragment example:

shader_type canvas_item;
void fragment() {
vec4 color = texture(TEXTURE,UV);
color.r += 0.5;
COLOR = color;

Vertex example:

uniform float speed = 1.0; // Standard playback speed
void vertex() {
VERTEX.x = VERTEX.x * TIME * speed;

Resources and Links

Back to Tutorial Series Homepage

blog comments powered by Disqus

AppGameKit Studio

See More Tutorials on!

Month List