Skip to content
lsl.devlsl.devLSL Dev

EnvironmentParam

Constants in the EnvironmentParam enum.

All constant groups

At a glance, from the LSL definitions
// Sun, moon and starsSKY_SUN, rotation rot, float scale, vector sun_colorSKY_MOON, rotation rot, float scale, float brightnessSKY_SUN_TEXTURE, string texture_ident  // inventory name or UUIDSKY_MOON_TEXTURE, string texture_ident  // inventory name or UUIDSKY_GLOW, float glow_size, float glow_focusSKY_STAR_BRIGHTNESS, float brightness  // 0 to 500// Sky colour and atmosphereSKY_AMBIENT, vector colorSKY_BLUE, vector blue_density, vector blue_horizonSKY_HAZE, float density, float horizon, float density_multiplier, float distance_multiplierSKY_GAMMA, float gamma  // 0 to 20SKY_DOME, float offset, float radius, float max_altitudeSKY_PLANET, float planet_radius, float sky_bottom_radius, float sky_top_radiusSKY_REFRACTION, float moisture_level, float droplet_radius, float ice_levelSKY_REFLECTION_PROBE_AMBIANCE, float ambiance  // 0.0 to 10.0// CloudsSKY_CLOUDS, vector color, float coverage, float scale, float variance, vector scroll, vector density, vector detailSKY_CLOUD_TEXTURE, string texture_ident  // inventory name or UUID// WaterWATER_FOG, vector color, float density, float modulationWATER_NORMAL_TEXTURE, string texture_ident  // inventory name or UUIDWATER_NORMAL_SCALE, vector scale  // <0,0,0> to <10,10,10>WATER_WAVE_DIRECTION, vector large_wave, vector small_waveWATER_FRESNEL, float offset, float scaleWATER_REFRACTION, float scale_above, float scale_belowWATER_BLUR_MULTIPLIER, float multiplier  // -0.5 to 0.5

Constants

Sun, moon and stars

ConstantTypeValueDescription
SKY_SUNinteger14Environmental sun parameters: rotation, scale, color, is_default_texture, direction vector, ambient color, and diffuse color.
SKY_MOONinteger9Environmental moon parameters: rotation, scale, brightness, is_default_texture, direction vector, ambient color, and diffuse color.
SKY_SUN_TEXTUREinteger21Environmental setting containing the inventory name or UUID of the texture used for the sun.
SKY_MOON_TEXTUREinteger20Environmental setting containing the inventory name or UUID of the texture used for the moon.
SKY_GLOWinteger6Environmental setting for sun and moon glow parameters: size and focus.
SKY_STAR_BRIGHTNESSinteger13Environmental setting for the brightness value applied to stars.

Sky colour and atmosphere

ConstantTypeValueDescription
SKY_AMBIENTinteger0Environmental setting for the ambient color used in the scene.
SKY_BLUEinteger22Environmental setting containing the colors used to calculate blue density and blue horizon in the sky.
SKY_HAZEinteger23Environmental setting containing the values used to calculate the light scattering impact of blue density and blue horizon on the scene.
SKY_GAMMAinteger5Environmental setting for the gamma value applied to the scene (repurposed in viewer 7.0+ as the HDR Scale value in the EEP editor).
SKY_DOMEinteger4Environmental setting containing sky dome parameters: offset, radius, and maximum altitude.
SKY_PLANETinteger10Environmental planet rendering parameters: planet_radius, sky_bottom_radius, and sky_top_radius.
SKY_REFRACTIONinteger11Environmental sky refraction parameters for rainbows and optical effects: moisture_level, droplet_radius, and ice_level.
SKY_REFLECTION_PROBE_AMBIANCEinteger24Environmental setting for the minimum ambiance value of all reflection probes. Note: Supported in the GLTF Materials project, requiring compatible viewers and testing areas.

Clouds

ConstantTypeValueDescription
SKY_CLOUDSinteger2Environmental cloud parameters including color, coverage percentage, scale, variance, scroll speed (X/Y), density, detail exponents, and default texture status.
SKY_CLOUD_TEXTUREinteger19Environmental setting containing the inventory name or UUID of the texture used for the clouds.

Water

ConstantTypeValueDescription
WATER_FOGinteger101Environmental underwater fog parameters: color, density exponent, and modulation.
WATER_NORMAL_TEXTUREinteger107Environmental setting containing the inventory name or UUID of the normal map texture used for water waves.
WATER_NORMAL_SCALEinteger104Environmental setting specifying the scaling vector applied to the water normal map.
WATER_WAVE_DIRECTIONinteger106Environmental wave direction vectors (X is east/west, Y is north/south) specifying speeds and directions for both large and small waves.
WATER_FRESNELinteger102Environmental water surface Fresnel scattering parameters: offset and scale.
WATER_REFRACTIONinteger105Environmental water surface refraction scale factors: scale_above and scale_below.
WATER_BLUR_MULTIPLIERinteger100Environmental setting specifying the multiplier applied to blur the scene when underwater.

Used by