shader-basics
Installation
SKILL.md
Shaders in Godot 4.3+
All examples target Godot 4.3+ with no deprecated APIs.
Related skills: animation-system for shader-driven effects like hit flash, godot-optimization for shader performance considerations, camera-system for post-processing camera effects, 2d-essentials for 2D lighting, pixel-art shaders, and CanvasTexture normal maps, 3d-essentials for spatial shaders and environment materials, particles-vfx for custom particle shaders, tween-animation for animating shader parameters at runtime.
1. Core Concepts
Shader Types
| Shader Type | Applied To | Use For |
|---|---|---|
canvas_item |
2D nodes (Sprite2D, Control, etc.) | 2D effects — outlines, dissolve, color swap |
spatial |
3D meshes (MeshInstance3D) | 3D materials — water, terrain, toon shading |
particles |
GPUParticles2D/3D | Custom particle behavior |
sky |
WorldEnvironment | Procedural sky rendering |
fog |
FogVolume | Volumetric fog effects |