Difference between revisions of "LSL Constants/llGetEnvironment"
Jump to navigation
Jump to search
Rider Linden (talk | contribs) |
Rider Linden (talk | contribs) |
||
Line 122: | Line 122: | ||
|16 | |16 | ||
|float width, float exponential, float exponential_scale, float linear, float constant | |float width, float exponential, float exponential_scale, float linear, float constant | ||
|Absorption profile parameters. profile_no should be passed along with this parameter to request a specific profile index. Currently only | |Absorption profile parameters. profile_no should be passed along with this parameter to request a specific profile index. Currently only two profiles are supported. | ||
* width | * width | ||
* exponential | * exponential |
Revision as of 10:56, 27 November 2018
Parameters
parameter | integer value | return values | description |
---|---|---|---|
SKY_TRACKS | 15 | float sky2, float sky3, float sky4 | Altitudes for sky transitions in the region. |
SKY_AMBIENT | 0 | vector ambient_color | The ambient color of the environment. |
SKY_TEXTURE_DEFAULTS | 1 | integer bloom_is_default, integer halo_is_default, integer rainbow_is_default | Checks if the textures are currently set to use the default. For default values, the returned integer is 1. If the texture uses something other than the default, the returned value is 0. |
SKY_CLOUDS | 2 | vector color, float coverage, float scale, float variance, vector scroll, vector density, vector detail, integer is_default | Environmental cloud information.
|
SKY_DOME | 4 | float offset, float radius, float max_altitude | Sky dome information.
|
SKY_GAMMA | 5 | float gamma | The gamma value applied to the scene. |
SKY_GLOW | 6 | vector glow_color | Glow color applied to the sun and moon. |
SKY_MOON | 9 | rotation rot, float scale, float brightness, integer is_default_texture, vector direction, vector ambient_color, vector diffuse_color | Detailed moon information
|
SKY_STAR_BRIGHTNESS | 13 | float brightness | |
SKY_SUN | 14 | rotation rot, float scale, vector sun_color, integer is_default_texture, vector direction, vector ambient_color, vector diffuse_color | Detailed sun information
|
SKY_PLANET | 10 | float planet_radius, float sky_bottom_radius, float sky_top_radius | Planet information used in rendering the sky
|
SKY_DENSITY_PROFILE_COUNTS | 3 | integer rayleigh_count, integer mie_count, integer absorption_count | Number of profiles currently active for atmospheric scattering. Currently all values will return 1. |
SKY_RAYLEIGH_CONFIG, integer profile_num | 18 | float width, float exponential, float exponential_scale, float linear, float constant | Rayleigh scatting profile parameters. profile_no should be passed along with this parameter to request a specific profile index. Currently only one profile is supported.
|
SKY_MIE_CONFIG, integer profile_num | 17 | float width, float exponential, float exponential_scale, float linear, float constant, float anisotropy | MIE scatting profile parameters. profile_no should be passed along with this parameter to request a specific profile index. Currently only one profile is supported.
|
SKY_ABSORPTION_CONFIG, integer profile_num | 16 | float width, float exponential, float exponential_scale, float linear, float constant | Absorption profile parameters. profile_no should be passed along with this parameter to request a specific profile index. Currently only two profiles are supported.
|
SKY_REFRACTION | 11 | float moisture_level, float droplet_radius, float ice_level | Sky refraction parameters for rainbows and optical effects.
|
SKY_LIGHT | 8 | vector light_direction, vector fade_color, vector total_ambient | Miscellaneous lighting values
|
WATER_BLUR_MULTIPLIER | 100 | float multiplier | Multiplier applied to blur the scene when under water. |
WATER_FOG | 101 | vector color, float density, fload modulation | Fog parameters applied when underwater
|
WATER_FRESNEL | 102 | float offset, float scale | Fresnel scattering applied to the surface of the water.
|
WATER_TEXTURE_DEFAULTS | 103 | integer normal_is_default, integer transparent_is_default | Checks if the textures are currently set to use the default. For default values the returned integer is 1, if the texture uses something other than the default this value is 0. |
WATER_NORMAL_SCALE | 104 | vector scale | Scaling applied to the water normal map. |
WATER_REFRACTION | 105 | float scale_above, float scale_below | Refraction factors when looking through the surface of the water.
|
WATER_WAVE_DIRECTION | 106 | vector large_wave, vector small_wave | Vector for the directions of the waves Y represents north/south and X represents movement east/west.
|
ENVIRONMENT_DAYINFO | 200 | integer day_length, integer day_offset, float secs_since_midnight | Current time and day information
|