summaryrefslogtreecommitdiff
path: root/indra/llinventory/llsettingssky.h
diff options
context:
space:
mode:
authorGraham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com>2018-03-14 00:11:19 +0100
committerGraham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com>2018-03-14 00:11:19 +0100
commit79e4a8c28ad29b028ddb907a6ea01f4ef71e822a (patch)
tree5addab6a1cad0d8545d5fbe6cfb3907c264591a3 /indra/llinventory/llsettingssky.h
parent057dda6afe59791f4a6fcf4c5ca8387b8aeda6a8 (diff)
Fix up atmospheric helpers and transport shader for adv atmo path.
Basic hook-up of sky settings to llatmosphere model. Moved mie aniso to be a top-level setting instead of a per-mie-layer setting.
Diffstat (limited to 'indra/llinventory/llsettingssky.h')
-rw-r--r--indra/llinventory/llsettingssky.h43
1 files changed, 42 insertions, 1 deletions
diff --git a/indra/llinventory/llsettingssky.h b/indra/llinventory/llsettingssky.h
index 70d7a1c54f..4fb8c101ee 100644
--- a/indra/llinventory/llsettingssky.h
+++ b/indra/llinventory/llsettingssky.h
@@ -66,6 +66,7 @@ public:
static const std::string SETTING_SKY_BOTTOM_RADIUS;
static const std::string SETTING_SKY_TOP_RADIUS;
static const std::string SETTING_SUN_ARC_RADIANS;
+ static const std::string SETTING_MIE_ANISOTROPY_FACTOR;
static const std::string SETTING_RAYLEIGH_CONFIG;
static const std::string SETTING_MIE_CONFIG;
@@ -77,7 +78,7 @@ public:
static const std::string SETTING_DENSITY_PROFILE_EXP_SCALE_FACTOR;
static const std::string SETTING_DENSITY_PROFILE_LINEAR_TERM;
static const std::string SETTING_DENSITY_PROFILE_CONSTANT_TERM;
- static const std::string SETTING_MIE_ANISOTROPY_FACTOR;
+
static const std::string SETTING_LEGACY_HAZE;
@@ -100,6 +101,46 @@ public:
static LLSD defaults();
+ F32 getPlanetRadius() const
+ {
+ return mSettings[SETTING_PLANET_RADIUS].asReal();
+ }
+
+ F32 getSkyBottomRadius() const
+ {
+ return mSettings[SETTING_SKY_BOTTOM_RADIUS].asReal();
+ }
+
+ F32 getSkyTopRadius() const
+ {
+ return mSettings[SETTING_SKY_TOP_RADIUS].asReal();
+ }
+
+ F32 getSunArcRadians() const
+ {
+ return mSettings[SETTING_SUN_ARC_RADIANS].asReal();
+ }
+
+ F32 getMieAnisotropy() const
+ {
+ return mSettings[SETTING_MIE_ANISOTROPY_FACTOR].asReal();
+ }
+
+ LLSD getRayleighConfigs() const
+ {
+ return mSettings[SETTING_RAYLEIGH_CONFIG];
+ }
+
+ LLSD getMieConfigs() const
+ {
+ return mSettings[SETTING_MIE_CONFIG];
+ }
+
+ LLSD getAbsorptionConfigs() const
+ {
+ return mSettings[SETTING_ABSORPTION_CONFIG];
+ }
+
LLUUID getBloomTextureId() const
{
return mSettings[SETTING_BLOOM_TEXTUREID].asUUID();