Skip to content

MapLightRegions

15.8

Class Documentation

Edit documentation

The map feature of light regions. It is a component of the map's MapContainer, in its components list.

A light region gives one part of the map its own lighting and fog values for characters and for the environment: sun colors, the sun direction for characters, reflection probes, fog and the color of the rim light. The values of one region are a LightRegionRenderData.

The feature keeps a top-down texture of the map. Each texel has up to four regions with one weight each. A pixel of the scene looks up its texel from its world position and blends the values of those regions by weight. The weight that is left over goes to the first region of the region array.

The feature also holds the rim light of the map in RimLightProperties.

Properties

DefaultRenderData

Embed<0x3069f601>
Default value
{
  "CharacterProbe": "0x0",
  "ReflectionSkyTint": [1, 1, 1],
  "HeightFogEnd": -6500,
  "CharacterSunLightDirection": [0, 0, 0],
  "DepthFogEnd": 3300,
  "SunLightColor": [1, 1, 1],
  "DepthFogColor": [0.03519999980926514, 0.125, 0.3050000071525574],
  "CharacterProbeIndex": 0,
  "DepthFogMaxIntensity": 0.25,
  "RimLightColor": [1, 1, 1],
  "HeightFogMaxIntensity": 0.05000000074505806,
  "Probe": "0x0",
  "Padding": 0,
  "HeightFogStart": -400,
  "priority": 0,
  "CharacterSunLightColor": [1, 1, 1],
  "DepthFogStart": 2075,
  "HeightFogColor": [
    0.4050000011920929,
    0.843999981880188,
    0.9380000233650208
  ],
  "ProbeIndex": 0
}
Edit documentation

Values of the default region, for the parts of the map that no other region covers.

RimLightProperties

Embed<RimLightMapProperties>
16.20
Default value
{
  "rotation": [90, 0, 0],
  "Contrast": 0.5,
  "Enabled": false,
  "SunShadowBlendWeight": 1,
  "SunLightBlendWeight": 0
}
Edit documentation

The rim light of the map: one directional light that adds a colored highlight to characters. This value sets its direction and its shape. The color is the RimLightColor of each light region.

See RimLightMapProperties.

TextureHeight

U16 = 1024
Edit documentation

Height of the region texture, in texels.