Godot Shader logo

Godot Shader

Community
fetasty
godot-shader

Godot 4 shaders, materials, visual effects, and rendering customization: Godot shading language (.gdshader), visual shader graphs, particle shaders, material setup, post-processing, and GPU performance optimization. Use when working on Godot 4 rendering for: (1) Writing or optimizing .gdshader files, (2) Designing visual shader graphs, (3) Creating particle effects or GPU-driven VFX, (4) Configuring render pipelines (Forward+/Mobile/Compatibility), (5) Optimizing draw calls and shader complexity, (6) Setting up post-processing.

Overview

Publisherfetasty
Repositorygodot-skills
Skill namegodot-shader
Stars
35
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by fetasty on GitHub. Read the source before you install it.

Installation

Install the Godot Shader AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fetasty/godot-skills/tree/main/godot-shader
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fetasty/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/godot-shader .claude/skills/godot-shader
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Shader in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Shader on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Shader is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Godot Shader Specialist

Godot 4 shaders, materials, visual effects, rendering customization, and GPU performance. Covers the Godot shading language, visual shader graphs, particle shaders, materials, post-processing, and render pipeline selection.

Renderer Selection

Forward+ (Default for Desktop)

  • Use for: PC, console, high-end mobile
  • Features: clustered lighting, volumetric fog, SDFGI, SSAO, SSR, glow
  • Supports unlimited real-time lights via clustered rendering
  • Best visual quality, highest GPU cost

Mobile Renderer

  • Use for: mobile devices, low-end hardware
  • Features: limited lights per object (8 omni + 8 spot), no volumetrics
  • Lower precision, fewer post-process options

Compatibility Renderer

  • Use for: web exports, very old hardware (OpenGL 3.3/WebGL 2)
  • No compute shaders — plan visual design around this if targeting web
  • Most limited feature set

Shader File Standards

  • One shader per file — file name matches material purpose
  • Naming: [type]_[category]_[name].gdshader
    • spatial_env_water.gdshader (3D environment water)
    • canvas_ui_healthbar.gdshader (2D UI health bar)
    • particles_combat_sparks.gdshader (particle effect)
  • Use #include (Godot 4.3+) or #define for shared functions

Shader Types

TypeUse
shader_type spatial3D mesh rendering
shader_type canvas_item2D sprites, UI elements
shader_type particlesGPU particle behavior
shader_type fogVolumetric fog effects
shader_type skyProcedural sky rendering

Code Standards

glsl
shader_type spatial;

// Uniforms with hints for artist-exposed parameters
uniform vec4 albedo_color : source_color = vec4(1.0);
uniform float roughness : hint_range(0.0, 1.0) = 0.5;
uniform sampler2D albedo_texture : source_color, filter_linear_mipmap, repeat_enable;
uniform sampler2D normal_map : hint_normal, filter_linear_mipmap, repeat_enable;

// Group uniforms for inspector organization — Godot 4.3+
group_uniforms Albedo;
uniform vec4 albedo_color : source_color = vec4(1.0);
uniform sampler2D albedo_texture : source_color, filter_linear_mipmap, repeat_enable;
group_uniforms Normal;
uniform sampler2D normal_map : hint_normal, filter_linear_mipmap, repeat_enable;
  • All uniforms must have descriptive names and appropriate hints
  • Comment non-obvious calculations, especially math-heavy sections
  • No magic numbers — use named constants or documented uniform values

Material Setup

StandardMaterial3D

  • Use when a spatial shader is unnecessary
  • Features: albedo, metallic/roughness, emission, normal, AO, detail maps
  • Performance: significantly cheaper than custom shaders
  • Good for 80%+ of project materials

ShaderMaterial

  • Use when StandardMaterial3D doesn't have a needed feature
  • Attach a .gdshader file or use ShaderMaterial for code-defined shaders

Material Overlay

  • Adds an extra render pass on a MeshInstance3D
  • Use sparingly — each overlay adds a draw call per mesh
  • Good for: damage flash, selection highlight, temporary effects

Post-4.3 Rendering Changes

From the godot skill references — key changes the model may not know:

  • 4.6: D3D12 default on Windows (was Vulkan), glow processes BEFORE tonemapping, SSR overhauled, AgX tonemapper has new white point/contrast controls
  • 4.5: Shader Baker (pre-compile to eliminate startup hitching), SMAA 1x, stencil buffer support, bent normal maps, specular occlusion
  • 4.4: Shader texture types changed from Texture2D to Texture

Particle Systems

GPU Particles (preferred)

  • Use GPUParticles3D/GPUParticles2D for large counts (100+)
  • Write shader_type particles for custom behavior
  • Particle shader controls: spawn, velocity, color over lifetime, size over lifetime
  • Use TRANSFORM for position, VELOCITY for movement, COLOR/CUSTOM for data

CPU Particles

  • Use CPUParticles3D/CPUParticles2D for small counts (<50) or Compatibility renderer
  • Simpler setup — use inspector properties

Particle Performance

  • Set lifetime to minimum needed
  • Use visibility_aabb to cull off-screen particles
  • LOD: reduce particle count at distance
  • Target: all particle systems combined < 2ms GPU time

Post-Processing

WorldEnvironment

  • WorldEnvironment node with Environment resource for scene-wide effects
  • Configure: glow, tone mapping, SSAO, SSR, fog, adjustments
  • Multiple environments for different areas (indoor vs outdoor)

Compositor Effects (4.3+)

  • Custom full-screen effects via CompositorEffect scripts
  • Access screen texture, depth, normals for custom passes
  • Use sparingly — each effect adds a full-screen pass

Screen-Space Shaders

glsl
uniform sampler2D screen_texture : hint_screen_texture;
uniform sampler2D depth_texture : hint_depth_texture;
  • Apply via ColorRect or TextureRect covering the viewport
  • Use for: heat distortion, underwater, damage vignette, blur effects

Performance Optimization

Draw Call Management

  • MultiMeshInstance3D for repeated objects — batches draw calls
  • MeshInstance3D.material_overlay sparingly — extra draw call per mesh
  • Merge static geometry where possible
  • Profile draw calls with Profiler and Performance.get_monitor()

Shader Complexity

  • Minimize texture samples in fragment shaders — expensive on mobile
  • Use hint_default_white/hint_default_black for optional textures
  • Avoid dynamic branching in fragment shaders — use mix() and step() instead
  • Pre-compute expensive operations in vertex shader when possible
  • LOD materials: simplified shaders for distant objects

Render Budgets (60 FPS target)

SubsystemBudget
Geometry rendering4-6ms
Lighting2-3ms
Shadows2-3ms
Particles/VFX1-2ms
Post-processing1-2ms
UI< 1ms

Common Shader Anti-Patterns

  • Texture reads in a loop — exponential cost
  • Full precision (highp) everywhere on mobile — use mediump/lowp where possible
  • Dynamic branching on per-pixel data — unpredictable on GPUs
  • Not using mipmaps on textures sampled at varying distances
  • Overdraw from transparent objects without depth pre-pass
  • Post-processing effects sampling screen texture multiple times — blur should be two-pass
  • Not setting render_priority on transparent materials — incorrect sort order

Frequently asked questions

What does the Godot Shader AI skill do?

Godot 4 shaders, materials, visual effects, and rendering customization: Godot shading language (.gdshader), visual shader graphs, particle shaders, material setup, post-processing, and GPU performance optimization. Use when working on Godot 4 rendering for: (1) Writing or optimizing .gdshader files, (2) Designing visual shader graphs, (3) Creating particle effects or GPU-driven VFX, (4) Configuring render pipelines (Forward+/Mobile/Compatibility), (5) Optimizing draw calls and shader complexity, (6) Setting up post-processing.

Why use Godot Shader on TypingMind?

Because you install it once and use it with any model. Godot Shader is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Shader in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fetasty/godot-skills/tree/main/godot-shader. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Godot Shader?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Shader?

As many as you like. As long as a model supports skills, you can use Godot Shader with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Shader AI skill free?

Yes. It is published on GitHub by fetasty under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇