@getenv_<name>=<channel> says the current value of a sky parameter on channel. It reads the sky currently being displayed, whatever its source.

Syntax

@getenv_<name>=<channel>

Settings

NameValueMeaningLegacy component form
ambientcolor r/g/bAmbient color, divided by 3 (the EEP slider scale).yes
bluedensitycolorBlue density, divided by 2.yes
bluehorizoncolorBlue horizon, divided by 2.yes
densitymultiplierfloatDensity multiplier, divided by 0.001.
distancemultiplierfloatDistance multiplier.
dropletradiusfloatSky droplet radius.
hazedensityfloatHaze density.
hazehorizonfloatHaze horizon.
icelevelfloatSky ice level.
maxaltitudefloatMax altitude (max Y).
moisturelevelfloatSky moisture level.
scenegammafloatScene gamma.
cloudcolorcolorCloud color.yes
cloudcoveragefloatCloud coverage (cloud shadow).
clouddensitycolorCloud position/density 1. Legacy name: cloud.as cloud
clouddetailcolorCloud position/density 2 (detail).yes
cloudscalefloatCloud scale.
cloudscrollvector2 x/yCloud scroll rate.x/y only
cloudtextureuuidCloud noise texture.
cloudvariancefloatCloud variance.
moonbrightnessfloatMoon brightness.
moonscalefloatMoon scale.
moontextureuuidMoon texture.
sunglowsizefloatSun glow size: 2 − glow.r / 20.
sunglowfocusfloatSun glow focus: glow.b / −5.
sunlightcolorcolorSun/moon light color, divided by 3. Legacy name: sunmooncolor.as sunmooncolor
sunscalefloatSun scale.
suntextureuuidSun texture.
starbrightnessfloatStar brightness.
sunazimuthfloat (radians)Sun azimuth, 0 to 2π, counter-clockwise from east.
sunelevationfloat (radians)Sun elevation; set values are clamped to −π/2…π/2.
moonazimuthfloat (radians)Moon azimuth.
moonelevationfloat (radians)Moon elevation; clamped like the sun's.
eastanglefloat (fraction of 2π)Legacy WindLight east angle. Setting it moves the sun and puts the moon opposite.
sunmoonpositionfloat (fraction of 2π)Legacy sun/moon position (elevation ÷ 2π). Setting it moves the sun and puts the moon opposite.
daytimefloatReplies -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.

Legacy component names

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.

Return value

Examples

llOwnerSay("@getenv_sunelevation=4711");

See also

Implementation notes

Comparison with RLV

This command works differently from RLV's @getenv_; see the comparison.