Skip to Main Content
Godot Engine Game Development Projects
book

Godot Engine Game Development Projects

by Chris Bradfield
June 2018
Beginner to intermediate content levelBeginner to intermediate
298 pages
7h 38m
English
Packt Publishing
Content preview from Godot Engine Game Development Projects

Creating a shader

To demonstrate some shader effects, create a scene with a Sprite node and choose any texture you like. This demo will use the cactus image from Coin Dash:

A shader can be added to any CanvasItem derived node—in this case, Sprite, via its Material property. In this property, select New Shader Material and click on the newly created resource. The first property is Shader, where you can choose a New Shader. When you do, a Shader panel appears at the bottom of the editor window.

This is where you'll write your shader code:

A blank ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Blender and Godot

Game Development with Blender and Godot

Kumsal Obuz
Unity Game Development Cookbook

Unity Game Development Cookbook

Paris Buttfield-Addison, Jon Manning, Tim Nugent

Publisher Resources

ISBN: 9781788831505Supplemental Content