EnvironmentParam
Constants in the EnvironmentParam enum.
// 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
| 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 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. |
Used by
llSetAgentEnvironmentfunctionSets an individual agent's environmental settings using the attributes in params over a duration of transition seconds. Must be used as part of an experience; passing an empty list removes overrides.llSetEnvironmentfunctionOverrides the environmental settings at position for a parcel (or region if position is <-1.0, -1.0, z>) using the parameters in params. Passing an empty params list removes previous overrides.