Skip to content
lsl.devlsl.devLSL Dev

EnvironmentParamReadOnly

Constants in the EnvironmentParamReadOnly enum.

All constant groups

At a glance, from the LSL definitions
// Sun, moon and starsSKY_SUN → rotation rot, float scale, vector sun_color, integer is_default_texture, vector direction, vector ambient_color, vector diffuse_colorSKY_MOON → rotation rot, float scale, float brightness, integer is_default_texture, vector direction, vector ambient_color, vector diffuse_colorSKY_SUN_TEXTURESKY_MOON_TEXTURESKY_GLOW → float glow_size, float glow_focusSKY_STAR_BRIGHTNESS → float brightness  // 0 to 500SKY_LIGHT → vector light_direction, vector fade_color, vector total_ambient// Sky colour and atmosphereSKY_AMBIENT → vector ambient_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 detail, integer is_defaultSKY_CLOUD_TEXTURE// WaterWATER_FOG → vector color, float density, float modulationWATER_NORMAL_TEXTUREWATER_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// Day cycle and defaultsENVIRONMENT_DAYINFO → integer day_length, integer day_offset, float secs_since_midnightSKY_TRACKS → float sky2, float sky3, float sky4SKY_TEXTURE_DEFAULTS → integer bloom_is_default, integer halo_is_default, integer rainbow_is_defaultWATER_TEXTURE_DEFAULTS → integer normal_is_default, integer transparent_is_default

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_LIGHTinteger8Environmental setting containing lighting parameters: dominant light direction (unit vector), current light color (fade_color in sRGB), and total ambient color (sRGB).

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.

Day cycle and defaults

ConstantTypeValueDescription
ENVIRONMENT_DAYINFOinteger200Day cycle and time information: day_length (seconds in the environment's day cycle), day_offset (seconds offset from GMT), and secs_since_midnight (seconds elapsed since the last day cycle midnight).
SKY_TRACKSinteger15Environmental setting containing the track altitudes used for sky transitions in the region.
SKY_TEXTURE_DEFAULTSinteger1Environmental check returning 1 if the sky textures are set to their default values, or 0 if they use custom textures.
WATER_TEXTURE_DEFAULTSinteger103Environmental check returning 1 if default water wave maps are used, or 0 if a custom texture is set.

Used by