O'Reilly logo

Sams Teach Yourself, Godot Engine Game Development in 24 Hours: The Official Guide to Godot 3.0 by George Marques, Ariel Manzur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 15. Materials and Shaders

What You’ll Learn in This Hour:

• Making 2D materials in Godot

• Making 3D materials

• Applying multiple material passes

• Writing simple shaders

In this hour, you’ll learn about materials in Godot. First, you’ll see the simple 2D materials, then you’ll learn about the complex but powerful 3D materials. You’ll also learn how to write shaders and add nice effects to your scenes.

CanvasItem Materials

The 2D materials are extremely simple. There’s nothing much you can do in this matter, because the 2D engine is based in pixels and textures drawn directly into the screen and without the need to process vertex positions and lighting, which is needed in 3D.

To add a material to a node, it must be derived from Node2D ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required