Skip to content

feat: light sets, light zones and soft shadows in the light bake - #42

Closed
nickyyOO wants to merge 2 commits into
OpenRAC:mainfrom
nickyyOO:feature/level-lighting
Closed

nickyyOO wants to merge 2 commits into
OpenRAC:mainfrom
nickyyOO:feature/level-lighting

Conversation

@nickyyOO

Copy link
Copy Markdown
Collaborator

Before: the light bake had one light set for the whole level and hard shadows.

After: a level can have light sets and light zones (the hero takes the light of the zone he is in), and point lights with a size cast soft shadows.

Tested: OpenRAC Museum built and played with its own light zones.

The level's light sets (gameplay +0x04) and the hero's light zones (+0x80)
are in the scene (Game/LightSets, Game/LightZones) and pack back.
bake-light gets one bounce of light (--bounce), a soft sun
(--sun-samples, --sun-soft) and each surface's own albedo.
A light with a size is a ball: its shadow is the mean over points across it,
so small things round a fire cast soft shadows, not sharp rays. Light on a
surface depends half on how it faces the light, so folds in the ground do
not draw sharp lines across a pool of light.
@nickyyOO nickyyOO closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant