Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-3d-lighting

БесплатноЗапускает вложенные скриптыНе проверен

Expert patterns for Godot 3D lighting including DirectionalLight3D shadow cascades, OmniLight3D attenuation, SpotLight3D projectors, VoxelGI vs SDFGI, and…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

3D Lighting

Expert guidance for realistic 3D lighting with shadows and global illumination.

NEVER Do

  • NEVER use VoxelGI without setting a proper extents — Unbound VoxelGI tanks performance. Always set size to tightly fit your scene.
  • NEVER enable shadows on every light — Each shadow-casting light is expensive. Use shadows sparingly: 1-2 DirectionalLights, ~3-5 OmniLights max.
  • NEVER forget directional_shadow_mode — Default is ORTHOGONAL. For large outdoor scenes, use PARALLEL_4_SPLITS for better shadow quality at distance.
  • NEVER use LightmapGI for fully dynamic scenes — Lightmaps are baked. Moving geometry won't receive updated lighting. Use VoxelGI or SDFGI instead.
  • NEVER set omni_range too large — Light attenuation is quadratic. A range of 500 affects 785,000 sq units. Keep range as small as visually acceptable.
  • NEVER hide a Light node using the Visible property to exclude it from a Lightmap bake — Hiding a light has no effect on the baker. You must change the light's Bake Mode to Disabled.
  • NEVER use VoxelGI with paper-thin walls — VoxelGI evaluates lighting using a 3D grid. Thin walls (less than one voxel thick) will cause severe light leaking. Seal your geometry or place hidden thick MeshInstance3D blocks around the exterior.
  • NEVER leave shadow bias at default for cascades — Default bias often causes Peter Panning or light leaking at split transitions. Tune bias per-light based on your scene's scale.
  • NEVER bake LightmapGI without a Denoiser — Godot's baked lightmaps are noisy by default. Use OIDN or JNLM (in Project Settings) for professional results.
  • NEVER use real-time SDFGI on Mobile/Compatibility renderers — It is a Forward+ exclusive feature. Use fake GI bounce lights for lower-end platforms.
  • NEVER use 'Update Continuity' in ReflectionProbes for performance — Keep ReflectionProbes on 'Update Once' and trigger manual updates only when necessary.
  • NEVER overflow the clustered shadow atlas — WHY: Forward+ packs Omni/Spot shadows into a shared atlas. Too many shadowed positional lights → atlas thrash, flickering, or silent quality collapse. Cap shadowed Omni (~3–5) and Spot (~2–4); use light_lod_optimizer.gd / distance fade before raising atlas size.
  • NEVER stack dozens of overlapping shadowed Omni/Spot in one cluster cell — WHY: Clustered light iteration cost scales with overlapping lights per tile. Prefer non-shadowed fills, tighter omni_range/spot_range, and distance_fade_* so far lights leave the cluster.

Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

Golden path (pick one — Do NOT Load peers)

Scene Load Do NOT Load
Outdoor Forward+ shadow_cascade_tuner.gd + sdfgi_probe_manager.gd (+ day_night_cycle.gd if time-of-day) fake_gi_bounce.gd, indoor VoxelGI bake unless hybrid; environment_blender.gd / fog unless atmosphere task
Indoor sealed geometry MANDATORY VoxelGI via light_probe_manager.gd + lighting_manager.gd + ReflectionProbes SDFGI on tiny interiors; Mobile fake GI unless targeting Mobile; sky/fog scripts unless zone blend
Mobile / Compatibility MANDATORY fake_gi_bounce.gd + light budgets in light_lod_optimizer.gd Real-time SDFGI (Forward+ only); HDR sky/volumetric body recipes
Lightmap bake / hybrid static MANDATORY lightmap_bake_helper.gd (+ Shadowmasking for outdoor) Runtime SDFGI as bake substitute; disabling lights via Visible
Sky / Environment blend only environment_blender.gd Cascade/GI managers when only tonemap/ambient/sky changes
Volumetric fog / shafts volumetric_fx.gd (+ volumetric_fog_zones.gd for localized density) Pure light-budget / shadow-atlas tuning tasks
Pure light budget / shadow LOD light_lod_optimizer.gd, shadow_bias_tuner.gd Do NOT Load environment_blender.gd, volumetric_fx.gd, day-night unless required

day_night_cycle.gd

Dynamic sun position and color based on time-of-day. Handles DirectionalLight3D rotation, color temperature, and intensity curves. Use for outdoor day/night systems.

light_probe_manager.gd

VoxelGI and SDFGI management for global illumination setup.

lighting_manager.gd

Dynamic light pooling and LOD. Manages light culling and shadow toggling based on camera distance. Use for performance optimization with many lights.

volumetric_fx.gd

Volumetric fog and god ray configuration. Runtime fog density/color adjustments and light shaft setup. Use for atmospheric effects.

shadow_cascade_tuner.gd

Expert logic for adjusting DirectionalLight3D shadow split distances dynamically based on sun angle and camera tilt.

[lightmap_bake_helper.gd](scripts/l

Полный SKILL.md на GitHub

Установить godot-3d-lighting в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/environment-and-fog.mdreferences/gi-and-bake-recipes.mdreferences/migration-notes.mdscripts/day_night_cycle.gdscripts/environment_blender.gdscripts/fake_gi_bounce.gdscripts/light_lod_optimizer.gdscripts/light_probe_manager.gdscripts/light_volume_trigger.gdscripts/lighting_manager.gdscripts/lighting_quality_manager.gdscripts/lightmap_bake_helper.gdscripts/reflection_probe_manager.gdscripts/sdfgi_probe_manager.gdscripts/shadow_bias_tuner.gdscripts/shadow_cascade_tuner.gdscripts/spotlight_projector_setup.gdscripts/volumetric_fog_zones.gdscripts/volumetric_fx.gd

FAQ

Что делает скилл godot-3d-lighting?

Expert patterns for Godot 3D lighting including DirectionalLight3D shadow cascades, OmniLight3D attenuation, SpotLight3D projectors, VoxelGI vs SDFGI, and LightmapGI baking. Use when implementing realistic 3D lighting, shadow optimization, global illumination, or light probes. Trigger keywords: DirectionalLight3D, OmniLight3D, SpotLight3D, shadow_enabled, directional_shadow_mode, directional_shadow_split, omni_range, omni_attenuation, spot_range, spot_angle, VoxelGI, SDFGI, LightmapGI, ReflectionProbe, Environment, WorldEnvironment.

Как установить скилл godot-3d-lighting?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-3d-lighting запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-3d-lighting с