sceneLighting.package
- ..
- .build.state16 B
- .metadata361 B
- README.md1.4 KB
- build.luau13.0 KB
- entrypoint.luau6.3 KB
- scene.json142 KB
This package holds more than this page lists. See all of its files in its world.
README.md
dynamicLightingShowcase
A cottage in a garden, lit by the dynamicLighting scene setup
(@builtin::systems.sceneLighting.dynamicLighting). Load it to see the
engine's real-time lighting at work, by day and by night.
- The room. The cottage's west wall opens on a wide window and its south wall on a window and a door. At the setup's 16:00 the sun lands on the red rug and the floor inside, and the walls, the ceiling and the furniture are lit by the light that patch sends on, carried by the probe field.
- The lamps. A pendant over the table, a floor lamp by the sofa, a lantern beside the door and two lamp posts along the path, each a bulb drawn round a point light. After dark they light the room and the garden, and the field carries their bounce.
- The garden. Broadleaf trees, conifers and bushes, rocks, a gravel path, a glossy tiled terrace that takes screen-space reflections, and a mirror ball on a plinth that reflects the sky and the cottage.
- The view. A camera from the south-west onto the sunlit west window, the door and the garden.
Select lighting and set sky/backdrop/timeOfDay (22 for night, 16 for the
afternoon) to move the scene between day and night; every other value the
lighting holds is on the same card.
The scene has no player: play shows the garden through its camera.
Entry point
entrypoint.luauholds the scene's load and per-frame hooks, all commented out.