@getenv_<name>=<channel> says the current value of a sky parameter on channel. It reads the sky currently being displayed, whatever its source.
@getenv_<name>=<channel>
| Name | Value | Meaning | Legacy component form |
|---|---|---|---|
ambient | color r/g/b | Ambient color, divided by 3 (the EEP slider scale). | yes |
bluedensity | color | Blue density, divided by 2. | yes |
bluehorizon | color | Blue horizon, divided by 2. | yes |
densitymultiplier | float | Density multiplier, divided by 0.001. | |
distancemultiplier | float | Distance multiplier. | |
dropletradius | float | Sky droplet radius. | |
hazedensity | float | Haze density. | |
hazehorizon | float | Haze horizon. | |
icelevel | float | Sky ice level. | |
maxaltitude | float | Max altitude (max Y). | |
moisturelevel | float | Sky moisture level. | |
scenegamma | float | Scene gamma. | |
cloudcolor | color | Cloud color. | yes |
cloudcoverage | float | Cloud coverage (cloud shadow). | |
clouddensity | color | Cloud position/density 1. Legacy name: cloud. | as cloud |
clouddetail | color | Cloud position/density 2 (detail). | yes |
cloudscale | float | Cloud scale. | |
cloudscroll | vector2 x/y | Cloud scroll rate. | x/y only |
cloudtexture | uuid | Cloud noise texture. | |
cloudvariance | float | Cloud variance. | |
moonbrightness | float | Moon brightness. | |
moonscale | float | Moon scale. | |
moontexture | uuid | Moon texture. | |
sunglowsize | float | Sun glow size: 2 − glow.r / 20. | |
sunglowfocus | float | Sun glow focus: glow.b / −5. | |
sunlightcolor | color | Sun/moon light color, divided by 3. Legacy name: sunmooncolor. | as sunmooncolor |
sunscale | float | Sun scale. | |
suntexture | uuid | Sun texture. | |
starbrightness | float | Star brightness. | |
sunazimuth | float (radians) | Sun azimuth, 0 to 2π, counter-clockwise from east. | |
sunelevation | float (radians) | Sun elevation; set values are clamped to −π/2…π/2. | |
moonazimuth | float (radians) | Moon azimuth. | |
moonelevation | float (radians) | Moon elevation; clamped like the sun's. | |
eastangle | float (fraction of 2π) | Legacy WindLight east angle. Setting it moves the sun and puts the moon opposite. | |
sunmoonposition | float (fraction of 2π) | Legacy sun/moon position (elevation ÷ 2π). Setting it moves the sun and puts the moon opposite. | |
daytime | float | Replies -1.000000 if the environment has no fixed sky (a shared or animating day cycle), otherwise 2.000000: a deliberately invalid value that can be fed back to @setenv_daytime without changing anything. |
If a name is not found, RLVa takes its last character as a component selector and looks the rest up in the legacy table: r or x = red/first, g or y = green/second, b or d = blue/third, i = intensity. Legacy bases: ambient, bluedensity, bluehorizon, cloudcolor, cloud, clouddetail, cloudscroll (first/second component only) and sunmooncolor. Examples: ambientr, bluehorizoni, cloudd, cloudscrollx. Intensity reads as the largest of r, g and b; setting it scales all three proportionally (or sets all three if the new value or the current maximum is 0). Legacy color values use the same ÷3 / ÷2 scaling as the full names.
asset, preset and daycycle are set-only: @getenv_preset is not handled and fails with RLV_RET_FAILED_UNKNOWN.
std::to_string (six decimals, for example 0.500000); colors r/g/b and vectors x/y with %f; UUIDs in standard form.cloudscrolld) fails with RLV_RET_FAILED_UNKNOWN and sends no reply.llOwnerSay("@getenv_sunelevation=4711");
rlvenvironment.cpp:190-463 (registerSkyFn, registerLegacySkyFn, registerGetEnvFn); reply formatting rlvenvironment.cpp:549-613; dispatch rlvenvironment.cpp:502-542.This command works differently from RLV's @getenv_; see the comparison.