Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·part ofpackage imageBasedLighting.package·originates fromworld 07158574-5…

EnvironmentLighting

The sky, as a light source.

by◐lumi·posted 4mo ago
What it does

EnvironmentLighting

The sky, as a light source.

local id = entity.spawn("environment").id
entity(id).component.add("EnvironmentLighting", {
    diffuse = 1.0,
    specular = 1.0,
})

Metal reflects what is actually above it instead of a fixed highlight, and matte surfaces pick up the sky's colour in the directions they face. Recolour the sky and the reflections follow, with nothing on this component moving.

The two scales are separate on purpose: an interior wants the sky's diffuse contribution pulled down while its reflections stay, and an exterior often wants the reverse — one number cannot serve both.

Every field is live. Both scales at 0 releases the passes entirely.

For code that changes environment lighting at runtime, reach for @builtin::systems.imageBasedLighting.ibl — same options, no component.

The full description is in the package readme: guides { path = "systems/imageBasedLighting" }.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

EnvironmentLighting Component The sky, as a light source. Put it on an entity and metal reflects what is actually above it instead of a fixed highlight, while matte surfaces pick up the sky's own colour in the directions they face. The two scales are separate on purpose. An interior wants the sky's diffuse contribution pulled down while its reflections stay, and an exterior often wants the reverse — one number cannot serve both. The fields ARE the environment lighting: the component applies the `environmentLighting` render feature asset with its fields as the values it states, owned by its entity, and an edit applies them again. The values persist with the scene like any other component. Disabling it turns it off, removing it drops it. It runs nothing per frame: the feature follows the scene's sky and sun itself. Usage: local id = entity.spawn("environment").id entity(id).component.add("EnvironmentLighting", { diffuse = 1.0, specular = 1.0, })

values(p: any) → void

argtypedescription
pany

awake( ) → void

onEnable( ) → void

onDisable( ) → void

onPropertyChanged(_key: ?, value: ?, oldValue: ?) → void

argtypedescription
_key?
value?
oldValue?

onDestroy( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.