CONTENT CONTRACT · VERSION 1
light_profile
A light profile: the steady light of a room, apart from the time of day, season and weather.
Signature
{ ambient: ProfileAmbient, background_rgb: {ColorChannel}, darkness_permille: RoomDarkness, fog: ProfileFog, hero: (ProfileHeroLight)?, id: ContentId, key: ProfileKeyLight, kind: "light_profile", matte_permille: (Permille)?, occlusion_permille: (Permille)?, shadow_lift_permille: (Permille)? }Fields
| Name | Type | Meaning |
|---|---|---|
ambient | ProfileAmbient | Sky light from above and below. |
background_rgb | {ColorChannel} | Red, green and blue of the backdrop around the room. Items: 3…3 |
darkness_permille | RoomDarkness | How dark the room counts for what burns in the dark (lamps, night-only fires, the hero light): 0 day, 800 deep dusk. Range: 0…800; Unit: permille |
fog | ProfileFog | Haze into the depth of the room. |
hero | ProfileHeroLight | The light each player carries in the room, so they stay the brightest spot; absent: the world's night hero light from the room's darkness of 500 on. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
key | ProfileKeyLight | The room's key light from above (its sun). |
kind | "light_profile" | Discriminant |
matte_permille | Permille | How matte the room's surfaces are: raises their roughness towards fully rough and takes their shine; absent: 0, the materials' own. Range: 0…1000; Unit: permille |
occlusion_permille | Permille | How deep corners, seams and wall feet darken: the share of light the voxel occlusion takes from the sky light (half of it also from lamps and the key light); absent: 450. Range: 0…1000; Unit: permille |
shadow_lift_permille | Permille | How much of the world's warm shadow lift the room keeps on its dark tones; low for a room whose own cool or green darkness should show; absent: 1000, all of it. Range: 0…1000; Unit: permille |
Validated example
{
"ambient": {
"ground_rgb": [
176,
132,
96
],
"intensity_permille": 100,
"sky_rgb": [
255,
228,
196
]
},
"background_rgb": [
48,
43,
37
],
"darkness_permille": 650,
"fog": {
"far_mm": 120000,
"near_mm": 65000,
"rgb": [
48,
43,
37
]
},
"hero": {
"candela": 7,
"radius_mm": 4500,
"rgb": [
255,
214,
166
]
},
"id": "core:home_light",
"key": {
"azimuth_millidegrees": 330000,
"elevation_millidegrees": 58000,
"intensity_permille": 170,
"rgb": [
255,
216,
168
],
"shadows": true
},
"kind": "light_profile",
"matte_permille": 700,
"occlusion_permille": 900
}