lighting-environment

Add point and spot lights, shadows, skybox time, and emissive materials to Decentraland scenes.

3|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/decentraland/sdk-skills --skill lighting-environment-decentraland
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lighting-environment
Source: https://github.com/decentraland/sdk-skills/tree/main/lighting-environment
Command: npx skills add https://github.com/decentraland/sdk-skills --skill lighting-environment-decentraland

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need a concise way to add realistic lighting, shadows, skybox control, day/night cycles, and glow effects to Decentraland scenes without dealing with low‑level SDK intricacies and performance limits.

Core Features & Use Cases

  • Point and Spot Lights: Create lights with configurable intensity, color, range, and shadow options.
  • Shadow Management: Enable hard or soft shadows, apply shadow mask textures, and respect the one‑light‑per‑parcel budget.
  • SkyboxTime & Day/Night Cycle: Set fixed times or run dynamic cycles to control ambient lighting.
  • Realm Detection: Retrieve current realm information to adapt lighting per server.
  • Emissive Materials: Apply self‑illuminated materials for glow effects, optionally combined with LightSource for realistic fixtures.
  • Use Case: Build a night‑market scene with lantern point lights casting soft shadows, a dusk skybox, and glowing vendor signs.

Quick Start

Use the lighting skill to create a point light at (8, 3, 8) with soft shadows and set the skybox time to dusk for a night‑market scene.

Frequently Asked Questions about lighting-environment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add dynamic lighting and day/night cycles to a Decentraland scene?

Add dynamic lighting and day/night cycles to a Decentraland scene by configuring point or spot lights, setting the SkyboxTime API to run dynamic transitions, and applying emissive materials for glow effects.

How do shadows and the one-light-per-parcel limit work in Decentraland?

Shadows in Decentraland require configuring hard or soft shadow types and mask textures, while the one-light-per-parcel limit restricts you to a single active light source per parcel to maintain scene performance budgets.

Can I use emissive materials for glow effects instead of active light sources?

Emissive materials provide self-illuminated glow effects without consuming the active light source budget, and you can optionally combine them with a LightSource component for realistic illuminated fixtures.

How do I detect realms and adapt scene lighting per server in Decentraland?

Detect realms and adapt lighting per server by executing runtime realm queries to retrieve current realm information, allowing your scene to conditionally adjust lighting and environment effects based on the active server.

What is the best way to set a fixed skybox time for a dusk night-market environment?

Set a fixed skybox time for a dusk night-market environment by calling the SkyboxTime API to lock the ambient lighting, then add lantern point lights with soft shadows and glowing vendor signs.

Does Decentraland support spot lights with configurable intensity and range?

Decentraland supports spot lights with configurable intensity, color, and range, alongside point lights, enabling you to create focused dynamic lighting effects while respecting the one-light-per-parcel budget.