EnvironmentConfig ​
Inherits: DatabaseResource < Resource
Configuration for Environment visual settings
Description ​
Controls fog, volumetric fog, tonemap, ambient lighting, and wind. These are artistic/atmospheric settings, not performance settings. Performance settings (SSAO, SSIL, SSR, SDFGI, Glow) belong in settings.gd.
Properties ​
Property descriptions ​
Tonemap
Environment.ToneMapper tonemap_mode = Environment.TONE_MAPPER_FILMIC ​
Tonemapping algorithm
float tonemap_exposure = 1.0 ​
Overall brightness adjustment
float tonemap_white = 1.0 ​
The brightness that is shown as pure white (higher = a flatter, less burnt picture). Filmic, ACES and AgX tonemappers use it
Sky
float sky_rotation_degrees = 0.0 ​
Turns the whole sky (clouds, stars, the colours) around the vertical axis, in degrees. The sun is not moved: its direction is in the Sun config
Wind
Vector3 wind_direction = Vector3(1.0, 0.0, 0.0) ​
The direction the wind blows towards on the ground (x and z of the vector; up and down are ignored)
float wind_intensity = 0.35 ​
How strong the wind is: 0 still, 1 a breeze, 2 a storm (plants sway with it; your own shaders read the global world_wind)
Fog Settings
bool fog_enabled = true ​
Enable fog
Environment.FogMode fog_mode = Environment.FOG_MODE_EXPONENTIAL ​
Fog calculation mode
Color fog_light_color = Color(0.518, 0.553, 0.608, 1) ​
Fog color
float fog_density = 0.01 ​
Fog density (higher = thicker fog)
float fog_aerial_perspective = 0.0 ​
Blend between fog color and sky color (0 = fog color, 1 = sky color)
float fog_sky_affect = 0.2 ​
How much fog affects sky rendering (0 = no effect, 1 = full effect). Low keeps the sky clear and the fog down on the ground
float fog_height = 10.0 ​
Height (in metres, world Y) under which the fog gets thicker the lower things are: a mist that lies in the valleys and on the ground. Needs Height Density above 0
float fog_height_density = 0.0 ​
How quickly the fog thickens below Height (0 = no height fog). It works on what is under Height at any distance: 0.02 is a light haze, 0.1 is thick (something 10 m under Height is 63 % fogged)
float fog_sun_scatter = 0.0 ​
Sun scatter intensity in fog (god rays effect)
Volumetric Fog Settings
bool volumetric_fog_enabled = false ​
Enable volumetric fog (more realistic, performance cost)
float volumetric_fog_density = 0.0095 ​
Volumetric fog density
Color volumetric_fog_albedo = Color(1, 1, 1, 1) ​
Volumetric fog color
Color volumetric_fog_emission = Color(0, 0, 0, 1) ​
Volumetric fog emission color (self-illumination)
float volumetric_fog_emission_energy = 1.0 ​
Volumetric fog emission brightness
float volumetric_fog_anisotropy = 0.2 ​
Light scattering direction (-1 = backward, 0 = equal, 1 = forward)
float volumetric_fog_length = 64.0 ​
Maximum distance for volumetric fog
float volumetric_fog_sky_affect = 1.0 ​
How much volumetric fog affects sky (0 = no effect, 1 = full effect)
float volumetric_fog_gi_inject = 1.0 ​
How much global illumination affects fog
float volumetric_fog_ambient_inject = 0.0 ​
How much ambient light affects fog
Ambient Light
Environment.AmbientSource ambient_light_source = Environment.AMBIENT_SOURCE_SKY ​
Where ambient light comes from
Color ambient_light_color = Color(1, 1, 1, 1) ​
Ambient light color (when using AMBIENT_SOURCE_COLOR)
float ambient_light_energy = 1.0 ​
Ambient light brightness
float ambient_light_sky_contribution = 1.0 ​
How much sky contributes to ambient light (0 = none, 1 = full)
Sun Light
bool sun_enabled = true ​
Is there a sun here? Off: no sunlight and no sun shadows at all, for an inside, a cave or a dungeon lit only by its own lights (the light nodes and the ambient light of this config). The sky shader, if there is one, loses its sun too: use a flat background colour in the Sky config
float sun_max_energy = 1.0 ​
How bright the sun is at noon
float sun_min_energy = 0.5 ​
How bright it is at night (the moon: the same light on the same path)
float sun_dawn_dusk_energy = 1.0 ​
How bright it is at dawn and dusk
Sun Light Colors
Color sun_day_color = Color("fffff2ff") ​
The colour of the light at noon
Color sun_dawn_color = Color("ffcc99ff") ​
The colour at sunrise
Color sun_dusk_color = Color("ffb380ff") ​
The colour at sunset
Color sun_night_color = Color("6f7080") ​
The colour at night
Sun Light Properties
DirectionalLight3D.SkyMode sun_sky_mode = DirectionalLight3D.SKY_MODE_LIGHT_AND_SKY ​
How the light affects the sky: light only (the sky shader does not see it), sky only, or both
float sun_angular_distance = 0.5 ​
Angular size of the sun (the bigger, the softer its shadows)
float sun_indirect_energy = 1.0 ​
How much the sun contributes to global illumination
float sun_volumetric_fog_energy = 1.0 ​
How much the sun lights volumetric fog (god rays)
Static Sun Light
float sun_static_energy = 2.0 ​
How bright a sun that stays where it is (a Sun config with the day-night cycle off) is
Color sun_static_color = Color("fffff2ff") ​
Its colour
Glow and Occlusion
float glow_amount = 1.0 ​
How strongly bright things glow in this world: 0 = no glow even if the player turned Glow on, 1 = normal, up to 4. The player's Glow setting still switches it on or off
float ssao_amount = 1.0 ​
How dark corners and contact shadows are in this world (screen space ambient occlusion): 0 = none even if the player turned it on, 1 = normal, up to 4
Camera
float exposure = 1.0 ​
How bright the picture is as the camera sees it (1 = as it is). Not the same as the player's Brightness setting
bool auto_exposure_enabled = false ​
The camera adapts to dark and bright places, as an eye does (Forward+ renderer only)
float auto_exposure_speed = 0.5 ​
How fast the exposure adapts (higher = faster)
float auto_exposure_scale = 0.4 ​
How strongly the auto exposure works: 0 = not at all, higher = brighter darks
bool dof_far_enabled = false ​
Blur what is far from the camera (Forward+ and Mobile renderers). Off by default: it changes the whole feel of a game
float dof_far_distance = 20.0 ​
From this distance (metres) things start to blur
float dof_far_transition = 10.0 ​
Over how many metres the blur grows to its full amount
bool dof_near_enabled = false ​
Blur what is very close to the camera
float dof_near_distance = 2.0 ​
Things closer than this (metres) are blurred
float dof_near_transition = 1.0 ​
Over how many metres the blur fades out
float dof_amount = 0.1 ​
How strong the blur is at its most
Colour Grade
Texture2D grade_lut ​
A colour lookup table (LUT): a picture of a strip of N squares of N by N (16 squares of 16 by 16 = 256 x 16), graded in any image editor. Start from addons/chroniclenode/assets/color_grading/neutral_lut_16.png. Empty = none
float grade_lut_strength = 1.0 ​
How much of the LUT is used (0 = none, 1 = all of it)
float grade_brightness = 1.0 ​
Brightness of the colours (1 = as they are)
float grade_contrast = 1.0 ​
How far apart darks and lights are (1 = as they are)
float grade_saturation = 1.0 ​
How strong the colours are (1 = as they are, 0 = black and white)
Color grade_tint = Color.WHITE ​
A colour the picture is tinted with (a cold blue for a cave, a warm orange for a desert)
float grade_tint_amount = 0.0 ​
How much of the tint is used (0 = none)
By the Hour
Gradient fog_color_by_hour ​
The colour of the fog by the hour of the day. The line is the day: the left end is 0:00, the right end 24:00. Empty = the Fog light color above all day
Curve fog_density_by_hour ​
How thick the fog is by the hour: the value is what Fog density is multiplied with (1 = as it is, 2 = twice as thick, 0 = none). The line is the day: left 0:00, right 24:00 (open the curve and raise its Max Value above 1 to go above the setting). Empty = all day as Fog density
Gradient ambient_color_by_hour ​
The colour of the ambient light by the hour (when its source is a colour). Left 0:00, right 24:00. Empty = the Ambient light color all day
Curve ambient_energy_by_hour ​
How strong the ambient light is by the hour: what Ambient light energy is multiplied with (a darker night, a brighter noon). Left 0:00, right 24:00 (open the curve and raise its Max Value above 1 to go above the setting). Empty = all day as it is
Curve exposure_by_hour ​
How bright the camera sees the world by the hour: what Exposure is multiplied with. Left 0:00, right 24:00 (raise the curve's Max Value above 1 to go above it). Empty = all day as Exposure
Gradient grade_tint_by_hour ​
The tint of the colour grade by the hour (its strength is Grade tint amount). Left 0:00, right 24:00. Empty = the Grade tint all day