jame581/godotprompter/3d-essentials

Claude Code and agent skill by jame581/godotprompter

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when working with 3D-specific systems — materials, lighting, shadows, environment, global illumination, fog, LOD, occlusion culling, and decals in Godot 4.3+

Install

npx vskill@latest install jame581/godotprompter/3d-essentials

SKILL.md

The same SKILL.md was published earlier as jame581/godotprompter/3d-essentials.

3D Essentials in Godot 4.3+

All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.

Related skills: rendering-pipeline for renderer choice, lighting strategy, AA and resolution scaling, player-controller for CharacterBody3D movement, physics-system for 3D collision shapes and raycasting, camera-system for Camera3D follow and transitions, shader-basics for spatial shaders and post-processing, godot-optimization for 3D performance tuning, animation-system for AnimationTree and 3D animation blending.

1. 3D Coordinate System & Core Nodes

Coordinate System

Godot uses a right-handed coordinate system with metric units (1 unit = 1 meter):

AxisDirectionColor
XRightRed
YUpGreen
ZOut of screen (+Z toward viewer)Blue
Cameras and lights point along -Z by default. When a character "faces forward," they look along -Z.
Essential 3D Nodes
NodePurpose
Node3DBase transform node — position, rotation, scale
MeshInstance3DDisplays a mesh with a material
Camera3DRequired to render 3D — perspective or orthogonal
DirectionalLight3DSun/moon — parallel rays, cheapest light
OmniLight3DPoint light — emits in all directions
SpotLight3DCone light — flashlights, spotlights
WorldEnvironmentSky, fog, tonemap, post-processing
DecalProjected texture onto surfaces
GPUParticles3DGPU-driven particle effects
CSGBox3D etc.Constructive Solid Geometry — prototyping
GridMap3D tile-based level building
Godot 4.7+: GridMap exposes its internal octants for spatial queries (cell_octant_size, get_used_octants(), get_octants_in_bounds() and friends) so you can scope work to a region instead of walking every cell. CSGShape3D gains autosmooth / smoothing_angle for automatic face smoothing. Full method table and semantics: references/godot-4.7-additions.md
Minimal 3D Scene
World (Node3D)
├── Camera3D
├── DirectionalLight3D
├── WorldEnvironment
├── MeshInstance3D (floor)
└── MeshInstance3D (player model)

2. Materials

StandardMaterial3D vs ShaderMaterial
MaterialUse ForNotes
StandardMaterial3DMost 3D objects — PBR workflowNo code; Inspector-driven
ORMMaterial3DSame as Standard but with packed ORM textureOcclusion+Roughness+Metallic in one texture
ShaderMaterialCustom effects — toon, water, dissolveRequires spatial shader code
Key StandardMaterial3D Properties

The PBR core: albedo_color / albedo_texture (base color), metallic (0 dielectric → 1 metal), roughness (0 mirror → 1 matte), normal_texture with normal_enabled (surface detail), ao_texture (ambient occlusion). Add emission + emission_energy_multiplier for self-illumination, heightmap_texture for parallax, rim / clearcoat for material flair.

Transparency Modes

Prefer Alpha Scissor (fast, shadowed cutouts) or Alpha Hash (dithered — hair) over plain Alpha (slow, no shadows); Depth Pre-Pass suits mostly-opaque meshes with transparent edges.

See references/materials-and-lighting-recipes.md for the comparison table.
Setting Materials from Code & Material Instancing

Create a StandardMaterial3D at runtime, assign to mesh.material_override, and drive emissive flashes via Tween. Use .duplicate() to make per-instance copies so changing one mesh's material doesn't affect others.

See references/materials-and-lighting-recipes.md for the full GDScript and C# recipes (basic material setup, emissive flash, per-instance duplicate, dynamic OmniLight3D explosion).

3. Lighting

Light Types Comparison
LightShapeShadowsCostMax Visible
DirectionalLight3DParallel raysPSSMCheapest8 (Forward+)
OmniLight3DSphereCube/Dual ParaboloidMedium512 clustered*
SpotLight3DConeSingle textureCheap512 clustered*
AreaLight3D (4.7+)RectanglePCSS softMost expensive—

*Forward+ shares 512 clustered element slots among omni lights, spot lights, decals, and reflection probes.

Light Properties

Key knobs: light_color, light_energy (HDR — values >1 are valid), shadow_enabled (big perf hit), directional_shadow_mode, directional_shadow_max_distance (lower = sharper shadows).

See references/materials-and-lighting-recipes.md for the properties table and the GDScript + C# sun setup snippet.
AreaLight3D (Godot 4.7+)

AreaLight3D emits light from a rectangle along the node's -Z (neon tubes, screens, softbox panels), with PCSS soft shadows driven by light_size. Mobile support is limited and Compatibility cannot cast area-light shadows; in Forward+ one visible area light adds clustered-lighting cost to all rendered objects, so reserve it for cinematics or high-end targets.

See references/materials-and-lighting-recipes.md for the full property table and the GDScript + C# setup recipe.
Dynamic Point Light

Spawn an OmniLight3D at runtime, drive its energy with a tween, queue-free on completion. Common for explosions, muzzle flashes, magic effects.

See references/materials-and-lighting-recipes.md for the full GDScript and C# recipe.
Shadow Configuration & Bake Modes

Prefer shadow_normal_bias over shadow_bias against acne; keep directional_shadow_max_distance at the minimum needed (50–100 m typical). Bake modes: Disabled (fully real-time, ignored by GI), Static (fully baked, no runtime cost), Dynamic (the default; indirect baked into lightmaps, direct real-time).

See references/materials-and-lighting-recipes.md for the shadow-tuning table and the bake-modes table.
Godot 4.8+: Screen-space contact shadows (Forward+ only; rendering/lights_and_shadows/contact_shadow/enabled, default false) add the small shadows shadow maps miss. Light properties and LightmapGI.specular_intensity: references/materials-and-lighting-recipes.md.

4. Environment & Post-Processing

Configure global rendering — sky background, tonemapping, glow, SSR, SSAO/SSIL/SDFGI, depth-of-field — through a WorldEnvironment node holding an Environment resource. Pick a tonemap (Linear, Reinhard, Filmic, ACES, or AgX from Godot 4.4) on the Environment resource. Forward+ enables SSAO, SSIL, SSR, and SDFGI; the Mobile renderer omits them, and Compatibility has only SSAO (since 4.6).

See references/environment-and-post.md for the full setup recipes (sky options, tonemap modes, all post-processing effects, the 4.6+ glow blend and default changes, AgX tonemap_agx_white / tonemap_agx_contrast controls, and the 4.6+ SSR quality upgrade).
Godot 4.7+: display/window/hdr/request_hdr_output requests HDR display output (read at startup; toggle Window.hdr_output_requested at runtime). ⚠️ The rendering/reflections/sky_reflections/roughness_layers default is 8 again after 7 in 4.6.0–4.6.1. Details in references/environment-and-post.md.
Changed in Godot 4.8: New projects enable rendering/lights_and_shadows/multi_bounce_occlusion/enabled (Forward+ only; class default false), which approximates multi-bounce GI in ambient occlusion from albedo. SSAO and AO maps look different from an upgraded project.

5. Global Illumination

Five GI options trade quality for cost: none (ambient only) → ReflectionProbe (localized) → LightmapGI (best quality, baked) → VoxelGI (small/medium dynamic) → SDFGI (large open-world). VoxelGI and SDFGI require Forward+; LightmapGI plays on all three renderers but bakes only in a Forward+ or Mobile editor. The 4.5+ subsection below applies across GI methods.

See references/global-illumination.md for the methods comparison table, ReflectionProbe scene + code recipe, LightmapGI bake workflow, and SDFGI configuration.
Specular Occlusion & Bent Normal Maps (Godot 4.5+)

Since 4.5, indirect specular is dimmed by the ambient light reaching each pixel, in all renderers — on by default, no re-bake; disable globally with rendering/reflections/specular_occlusion/enabled or per shader with render_mode specular_occlusion_disabled. The StandardMaterial3D Bent Normal slot takes a baked bent normal map for better indirect lighting on hero assets.

See references/global-illumination.md for when each one matters and the bent normal setup.

6. Fog

Three layers: depth/height fog set on WorldEnvironment.environment (cheap, all renderers), volumetric fog (Forward+ only — godrays through depth), and FogVolume nodes for localized fog effects (interior rooms, pits, atmospheric volumes).

See references/fog-recipes.md for the full GDScript and C# recipes — depth/height fog setup, volumetric fog parameters and performance notes, and FogVolume placement.
⚠️ Changed in Godot 4.7: New project setting rendering/environment/fog/use_legacy_blending (default false) restores the volumetric fog blending of Godot 4.5 and earlier (GH-119414; also on the 4.6 branch). The blending itself changed in 4.6, which made it more physically accurate, so fog tuned on 4.5 looks brighter after upgrading (GH-112494). Enable the setting to get the old look back exactly; otherwise lower the fog density or the lights' Volumetric Fog Energy.

7. Decals

Decal nodes project a texture onto whatever surfaces fall within their bounding box — bullet holes, blood splatter, ground details, signage. Forward+ and Mobile render decals; Compatibility does not. Performance scales with overdraw and decal count.

See references/decals.md for the scene setup, runtime spawning recipe (GDScript + C#), and the per-renderer decal limits.

8. Optimization — LOD, Culling, MultiMesh

Four tools: automatic mesh LOD (set on import or per MeshInstance3D), manual VisibilityRange for staged swaps, occlusion culling via OccluderInstance3D, and MultiMeshInstance3D for thousands of identical meshes in one draw call.

See references/lod-and-culling.md for setup recipes for each tool plus the MultiMesh runtime population example.

9. Renderer Comparison

Pick the renderer before you build the look: Forward+ (desktop default) is the only one with SDFGI and volumetric fog, Mobile trades those for performance on tile-based GPUs, and Compatibility (GLES3-class) drops most advanced lighting entirely. Advice that assumes SDFGI silently fails on the other two.

Full feature-by-renderer table and selection guidance: references/renderer-comparison.md


10. Common Pitfalls

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
354
Repository forks
18
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jame581/godotprompter/3d-essentials/badge)](https://verified-skill.com/skills/jame581/godotprompter/3d-essentials)

Something wrong with this skill or its page? Tell us.