Skip to main content

environment

3d · render · 21 properties · 3D

The scene's atmosphere: the sky it sits under and is lit by, the ambient light, fog, exposure, tonemap, colour grading and the shadow budget. The last current one in tree order wins, so a level can carry two and switch between them. Per-view effects stay on camera.post.

In a scene, environment is the node key that applies it. A script reaches the same properties through node.environment.get() and node.environment.set(table).

Properties

propertytypedefaultdescription
ambientcolor[0.125,0.14,0.157,1]Light every surface gets whatever the lights do
contrastfloat1Contrast around mid grey At least 0.
currentbooltrueWhether this is the environment the scene draws under; the last current one in tree order wins
exposurefloat1Linear multiplier before the tonemap At least 0.
fogenumnoneHow fog thickens with distance One of none, linear, exponential, exponential_squared.
fog_colorcolor[0.624,0.706,0.784,1]What distance fades toward
fog_densityfloat0.02Thickness, for exponential fog At least 0.
fog_endfloat80Where linear fog is total, in world units At least 0.
fog_height_fallofffloat0How fast fog thins with height; zero fills the scene evenly At least 0.
fog_startfloat10Where linear fog begins, in world units At least 0.
gammafloat1Gamma applied in linear space At least 0.01.
saturationfloat1Colour multiplier around luminance; zero is grey At least 0.
shadow_distancefloat60How far from the camera shadows are drawn At least 0.
shadow_resolutionint2048Side of the shadow map, in texels At least 256.
shadow_softnessfloat1How far a shadow's edge is blurred At least 0.
shadowsbooltrueWhether any light casts shadows at all
show_skybooltrueFalse lights the scene from the sky without drawing it, leaving the background colour
skystringEquirectangular image, project-relative: .hdr, .exr or .png. It draws behind the scene and lights it. Empty is no sky
sky_intensityfloat1Brightness of the sky, and of the light it casts At least 0.
sky_rotationfloat0Turn of the sky about y, in degrees
tonemapenumneutralThe curve the HDR film is mapped through One of none, aces, reinhard, agx, neutral.