EnvironmentParamReadOnly
Constants in the EnvironmentParamReadOnly enum.
// 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
| Constant | Type | Value | Description |
|---|---|---|---|
SKY_SUN | integer | 14 | Environmental sun parameters: rotation, scale, color, is_default_texture, direction vector, ambient color, and diffuse color. |
SKY_MOON | integer | 9 | Environmental moon parameters: rotation, scale, brightness, is_default_texture, direction vector, ambient color, and diffuse color. |
SKY_SUN_TEXTURE | integer | 21 | Environmental setting containing the inventory name or UUID of the texture used for the sun. |
SKY_MOON_TEXTURE | integer | 20 | Environmental setting containing the inventory name or UUID of the texture used for the moon. |
SKY_GLOW | integer | 6 | Environmental setting for sun and moon glow parameters: size and focus. |
SKY_STAR_BRIGHTNESS | integer | 13 | Environmental setting for the brightness value applied to stars. |
SKY_LIGHT | integer | 8 | Environmental 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
| Constant | Type | Value | Description |
|---|---|---|---|
SKY_AMBIENT | integer | 0 | Environmental setting for the ambient color used in the scene. |
SKY_BLUE | integer | 22 | Environmental setting containing the colors used to calculate blue density and blue horizon in the sky. |
SKY_HAZE | integer | 23 | Environmental setting containing the values used to calculate the light scattering impact of blue density and blue horizon on the scene. |
SKY_GAMMA | integer | 5 | Environmental setting for the gamma value applied to the scene (repurposed in viewer 7.0+ as the HDR Scale value in the EEP editor). |
SKY_DOME | integer | 4 | Environmental setting containing sky dome parameters: offset, radius, and maximum altitude. |
SKY_PLANET | integer | 10 | Environmental planet rendering parameters: planet_radius, sky_bottom_radius, and sky_top_radius. |
SKY_REFRACTION | integer | 11 | Environmental sky refraction parameters for rainbows and optical effects: moisture_level, droplet_radius, and ice_level. |
SKY_REFLECTION_PROBE_AMBIANCE | integer | 24 | Environmental setting for the minimum ambiance value of all reflection probes. Note: Supported in the GLTF Materials project, requiring compatible viewers and testing areas. |
Clouds
| Constant | Type | Value | Description |
|---|---|---|---|
SKY_CLOUDS | integer | 2 | Environmental cloud parameters including color, coverage percentage, scale, variance, scroll speed (X/Y), density, detail exponents, and default texture status. |
SKY_CLOUD_TEXTURE | integer | 19 | Environmental setting containing the inventory name or UUID of the texture used for the clouds. |
Water
| Constant | Type | Value | Description |
|---|---|---|---|
WATER_FOG | integer | 101 | Environmental underwater fog parameters: color, density exponent, and modulation. |
WATER_NORMAL_TEXTURE | integer | 107 | Environmental setting containing the inventory name or UUID of the normal map texture used for water waves. |
WATER_NORMAL_SCALE | integer | 104 | Environmental setting specifying the scaling vector applied to the water normal map. |
WATER_WAVE_DIRECTION | integer | 106 | Environmental wave direction vectors (X is east/west, Y is north/south) specifying speeds and directions for both large and small waves. |
WATER_FRESNEL | integer | 102 | Environmental water surface Fresnel scattering parameters: offset and scale. |
WATER_REFRACTION | integer | 105 | Environmental water surface refraction scale factors: scale_above and scale_below. |
WATER_BLUR_MULTIPLIER | integer | 100 | Environmental setting specifying the multiplier applied to blur the scene when underwater. |
Day cycle and defaults
| Constant | Type | Value | Description |
|---|---|---|---|
ENVIRONMENT_DAYINFO | integer | 200 | Day 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_TRACKS | integer | 15 | Environmental setting containing the track altitudes used for sky transitions in the region. |
SKY_TEXTURE_DEFAULTS | integer | 1 | Environmental check returning 1 if the sky textures are set to their default values, or 0 if they use custom textures. |
WATER_TEXTURE_DEFAULTS | integer | 103 | Environmental check returning 1 if default water wave maps are used, or 0 if a custom texture is set. |
Used by
llGetEnvironmentfunctionReturns a list containing the current environment parameters for the parcel or region at pos, retrieved in the order specified by params.