diff options
author | Jacek Antonelli | 2010-04-21 01:51:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:40:56 -0500 |
commit | bf7bc88cfcdbd08c2afd965844f64bf315ba4b7e (patch) | |
tree | 86c0891401fe8d54db781e3344a9eed1cbeb54af /linden | |
parent | Improved OpenSim Scripting Language function tooltips. (diff) | |
download | meta-impy-bf7bc88cfcdbd08c2afd965844f64bf315ba4b7e.zip meta-impy-bf7bc88cfcdbd08c2afd965844f64bf315ba4b7e.tar.gz meta-impy-bf7bc88cfcdbd08c2afd965844f64bf315ba4b7e.tar.bz2 meta-impy-bf7bc88cfcdbd08c2afd965844f64bf315ba4b7e.tar.xz |
Applied patch for LightShare viewer-side implementation.
Ported from Meta7 viewer by Armin.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/lscript/lscript_library/lscript_library.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/keywords.ini | 37 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 15 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterenvsettings.cpp | 19 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterenvsettings.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewergenericmessage.cpp | 103 | ||||
-rw-r--r-- | linden/indra/newview/llviewergenericmessage.h | 2 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 9 | ||||
-rw-r--r-- | linden/indra/newview/meta7windlight.h | 96 |
9 files changed, 276 insertions, 15 deletions
diff --git a/linden/indra/lscript/lscript_library/lscript_library.cpp b/linden/indra/lscript/lscript_library/lscript_library.cpp index 13996d7..af08d2c 100644 --- a/linden/indra/lscript/lscript_library/lscript_library.cpp +++ b/linden/indra/lscript/lscript_library/lscript_library.cpp | |||
@@ -563,6 +563,13 @@ void LLScriptLibrary::init() | |||
563 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetSpeed", NULL, "kf", "osSetSpeed(key AVATAR, float SpeedModifier)\nMultiplies the normal running, walking, and flying speed of the specified avatar.\n(OpenSim only.)")); | 563 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetSpeed", NULL, "kf", "osSetSpeed(key AVATAR, float SpeedModifier)\nMultiplies the normal running, walking, and flying speed of the specified avatar.\n(OpenSim only.)")); |
564 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseDamage", NULL, "kf", "osCauseDamage(key AVATAR, float damage)\nCauses damage to specified AVATAR (UUID).\n(OpenSim only.)")); | 564 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseDamage", NULL, "kf", "osCauseDamage(key AVATAR, float damage)\nCauses damage to specified AVATAR (UUID).\n(OpenSim only.)")); |
565 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseHealing", NULL, "kf", "osCauseHealing(key AVATAR, float healing)\nCauses Healing to specified AVATAR (UUID).\n(OpenSim only.)")); | 565 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseHealing", NULL, "kf", "osCauseHealing(key AVATAR, float healing)\nCauses Healing to specified AVATAR (UUID).\n(OpenSim only.)")); |
566 | |||
567 | |||
568 | // LightShare functions | ||
569 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "cmSetWindlightScene", "i", "l", "integer cmSetWindlightScene(list rules)\nSet the current WindLight scene. Restricted to estate managers and owners only.")); | ||
570 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "cmSetWindlightSceneTargeted", "i", "lk", "integer cmSetWindlightSceneTargeted(list rules, key target)\nSet the current WindLight scene directed to a specific avatar. Restricted to estate managers and owners only.")); | ||
571 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "cmGetWindlightScene", "l", "l", "list cmGetWindlightScene(list rules)\nGet the current WindLight settings.")); | ||
572 | |||
566 | } | 573 | } |
567 | 574 | ||
568 | LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, const char *desc, BOOL god_only) | 575 | LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, const char *desc, BOOL god_only) |
diff --git a/linden/indra/newview/app_settings/keywords.ini b/linden/indra/newview/app_settings/keywords.ini index b0851ef..647723f 100644 --- a/linden/indra/newview/app_settings/keywords.ini +++ b/linden/indra/newview/app_settings/keywords.ini | |||
@@ -558,6 +558,43 @@ STATUS_NOT_SUPPORTED Feature not supported | |||
558 | STATUS_INTERNAL_ERROR An internal error occurred | 558 | STATUS_INTERNAL_ERROR An internal error occurred |
559 | STATUS_WHITELIST_FAILED URL failed to pass whitelist | 559 | STATUS_WHITELIST_FAILED URL failed to pass whitelist |
560 | 560 | ||
561 | WL_WATER_COLOR Windlight Water Colour | ||
562 | WL_WATER_FOG_DENSITY_EXPONENT Windlight Water Fog Density Exponent | ||
563 | WL_UNDERWATER_FOG_MODIFIER Windlight Underwater Fog Modifier | ||
564 | WL_REFLECTION_WAVELET_SCALE Windlight Reflection Wavelet Scale | ||
565 | WL_FRESNEL_SCALE Windlight Fresnel Scale | ||
566 | WL_FRESNEL_OFFSET Windlight Fresnel Offset | ||
567 | WL_REFRACT_SCALE_ABOVE Windlight Refract Scale Above | ||
568 | WL_REFRACT_SCALE_BELOW Windlight Refract Scale Below | ||
569 | WL_BLUR_MULTIPLIER Windlight Blur Multiplier | ||
570 | WL_BIG_WAVE_DIRECTION Windlight Big Wave Direction | ||
571 | WL_LITTLE_WAVE_DIRECTION Windlight Little Wave Direction | ||
572 | WL_NORMAL_MAP_TEXTURE Windlight Normal Map Texture | ||
573 | WL_HORIZON Windlight Horizon Colour | ||
574 | WL_HAZE_HORIZON Windlight Haze Horizon | ||
575 | WL_BLUE_DENSITY Windlight Blue Density | ||
576 | WL_HAZE_DENSITY Windlight Haze Density | ||
577 | WL_DENSITY_MULTIPLIER Windlight Density Multiplier | ||
578 | WL_DISTANCE_MULTIPLIER Windlight Distance Multiplier | ||
579 | WL_MAX_ALTITUDE Windlight Max Altitude | ||
580 | WL_SUN_MOON_COLOR Windlight Sun/Moon Colour | ||
581 | WL_AMBIENT Windlight Ambient Colour | ||
582 | WL_EAST_ANGLE Windlight Sun/Position East | ||
583 | WL_SUN_GLOW_FOCUS Windlight Sun Glow Focus | ||
584 | WL_SUN_GLOW_SIZE Windlight Sun Glow Size | ||
585 | WL_SCENE_GAMMA Windlight Scene Gamma | ||
586 | WL_STAR_BRIGHTNESS Windlight Star Brightness | ||
587 | WL_CLOUD_COLOR Windlight Cloud Colour | ||
588 | WL_CLOUD_XY_DENSITY Windlight Cloud X/Y/Density | ||
589 | WL_CLOUD_COVERAGE Windlight Cloud Coverage | ||
590 | WL_CLOUD_SCALE Windlight Cloud Scale | ||
591 | WL_CLOUD_DETAIL_XY_DENSITY Windlight Cloud Detail X/Y/Density | ||
592 | WL_CLOUD_SCROLL_X Windlight Cloud Scroll X | ||
593 | WL_CLOUD_SCROLL_Y Windlight Cloud Scroll Y | ||
594 | WL_CLOUD_SCROLL_Y_LOCK Windlight Cloud Scroll Y Lock | ||
595 | WL_CLOUD_SCROLL_X_LOCK Windlight Cloud Scroll X Lock | ||
596 | WL_DRAW_CLASSIC_CLOUDS Windlight Draw Classic Clouds | ||
597 | |||
561 | # string constants | 598 | # string constants |
562 | [word .1, .3, .5] | 599 | [word .1, .3, .5] |
563 | NULL_KEY Indicates an empty key | 600 | NULL_KEY Indicates an empty key |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index b883231..3b5fa3f 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -12018,6 +12018,21 @@ | |||
12018 | <key>Value</key> | 12018 | <key>Value</key> |
12019 | <integer>1</integer> | 12019 | <integer>1</integer> |
12020 | </map> | 12020 | </map> |
12021 | |||
12022 | <!-- Begin: Use Serverside Windlight Settings --> | ||
12023 | <key>UseServersideWindlightSettings</key> | ||
12024 | <map> | ||
12025 | <key>Comment</key> | ||
12026 | <string>Whether or not to use Windlight settings presented by the server.</string> | ||
12027 | <key>Persist</key> | ||
12028 | <integer>1</integer> | ||
12029 | <key>Type</key> | ||
12030 | <string>Boolean</string> | ||
12031 | <key>Value</key> | ||
12032 | <integer>1</integer> | ||
12033 | </map> | ||
12034 | <!-- End: Use Serverside Windlight Settings --> | ||
12035 | |||
12021 | <key>UseStartScreen</key> | 12036 | <key>UseStartScreen</key> |
12022 | <map> | 12037 | <map> |
12023 | <key>Comment</key> | 12038 | <key>Comment</key> |
diff --git a/linden/indra/newview/llfloaterenvsettings.cpp b/linden/indra/newview/llfloaterenvsettings.cpp index 661c398..557a5e1 100644 --- a/linden/indra/newview/llfloaterenvsettings.cpp +++ b/linden/indra/newview/llfloaterenvsettings.cpp | |||
@@ -31,7 +31,6 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "llviewerprecompiledheaders.h" | 33 | #include "llviewerprecompiledheaders.h" |
34 | |||
35 | #include "llfloaterenvsettings.h" | 34 | #include "llfloaterenvsettings.h" |
36 | 35 | ||
37 | #include "llfloaterwindlight.h" | 36 | #include "llfloaterwindlight.h" |
@@ -41,7 +40,8 @@ | |||
41 | #include "llcombobox.h" | 40 | #include "llcombobox.h" |
42 | #include "llcolorswatch.h" | 41 | #include "llcolorswatch.h" |
43 | #include "llwlanimator.h" | 42 | #include "llwlanimator.h" |
44 | 43 | #include "llviewergenericmessage.h" | |
44 | #include "meta7windlight.h" | ||
45 | #include "llwlparamset.h" | 45 | #include "llwlparamset.h" |
46 | #include "llwlparammanager.h" | 46 | #include "llwlparammanager.h" |
47 | #include "llwaterparammanager.h" | 47 | #include "llwaterparammanager.h" |
@@ -87,6 +87,7 @@ void LLFloaterEnvSettings::initCallbacks(void) | |||
87 | // WL Top | 87 | // WL Top |
88 | childSetAction("EnvAdvancedSkyButton", onOpenAdvancedSky, NULL); | 88 | childSetAction("EnvAdvancedSkyButton", onOpenAdvancedSky, NULL); |
89 | childSetAction("EnvAdvancedWaterButton", onOpenAdvancedWater, NULL); | 89 | childSetAction("EnvAdvancedWaterButton", onOpenAdvancedWater, NULL); |
90 | childSetAction("EnvSubmitWindlight", onSubmitWindlight, NULL); | ||
90 | childSetAction("EnvUseEstateTimeButton", onUseEstateTime, NULL); | 91 | childSetAction("EnvUseEstateTimeButton", onUseEstateTime, NULL); |
91 | childSetAction("EnvSettingsHelpButton", onClickHelp, this); | 92 | childSetAction("EnvSettingsHelpButton", onClickHelp, this); |
92 | } | 93 | } |
@@ -284,6 +285,20 @@ void LLFloaterEnvSettings::onOpenAdvancedWater(void* userData) | |||
284 | LLFloaterWater::show(); | 285 | LLFloaterWater::show(); |
285 | } | 286 | } |
286 | 287 | ||
288 | void LLFloaterEnvSettings::onSubmitWindlight(void* userData) | ||
289 | { | ||
290 | Meta7WindlightPacket * wl = new Meta7WindlightPacket(); | ||
291 | |||
292 | LLWaterParamManager * param_mgr = LLWaterParamManager::instance(); | ||
293 | wl->reflectionWaveletScale.X = param_mgr->mNormalScale.mX; | ||
294 | wl->reflectionWaveletScale.Y = param_mgr->mNormalScale.mY; | ||
295 | wl->reflectionWaveletScale.Z = param_mgr->mNormalScale.mZ; | ||
296 | |||
297 | |||
298 | std::vector<std::string> strings; | ||
299 | strings.push_back((char*)wl); | ||
300 | send_generic_message("Windlight", strings); | ||
301 | } | ||
287 | 302 | ||
288 | void LLFloaterEnvSettings::onUseEstateTime(void* userData) | 303 | void LLFloaterEnvSettings::onUseEstateTime(void* userData) |
289 | { | 304 | { |
diff --git a/linden/indra/newview/llfloaterenvsettings.h b/linden/indra/newview/llfloaterenvsettings.h index 4cdf603..49bf4fd 100644 --- a/linden/indra/newview/llfloaterenvsettings.h +++ b/linden/indra/newview/llfloaterenvsettings.h | |||
@@ -78,6 +78,9 @@ public: | |||
78 | /// open the advanced water settings menu | 78 | /// open the advanced water settings menu |
79 | static void onOpenAdvancedWater(void* userData); | 79 | static void onOpenAdvancedWater(void* userData); |
80 | 80 | ||
81 | /// submit windlight settings to the estate | ||
82 | static void onSubmitWindlight(void* userData); | ||
83 | |||
81 | /// sync time with the server | 84 | /// sync time with the server |
82 | static void onUseEstateTime(void* userData); | 85 | static void onUseEstateTime(void* userData); |
83 | 86 | ||
diff --git a/linden/indra/newview/llviewergenericmessage.cpp b/linden/indra/newview/llviewergenericmessage.cpp index e06766b..84f464f 100644 --- a/linden/indra/newview/llviewergenericmessage.cpp +++ b/linden/indra/newview/llviewergenericmessage.cpp | |||
@@ -34,13 +34,16 @@ | |||
34 | #include "llviewerprecompiledheaders.h" | 34 | #include "llviewerprecompiledheaders.h" |
35 | 35 | ||
36 | #include "llviewergenericmessage.h" | 36 | #include "llviewergenericmessage.h" |
37 | 37 | #include "meta7windlight.h" | |
38 | #include "lldispatcher.h" | 38 | #include "lldispatcher.h" |
39 | #include "lluuid.h" | 39 | #include "lluuid.h" |
40 | #include "message.h" | 40 | #include "message.h" |
41 | |||
42 | #include "llagent.h" | 41 | #include "llagent.h" |
43 | 42 | #include "llwaterparamset.h" | |
43 | #include "llwaterparammanager.h" | ||
44 | #include "llwlparamset.h" | ||
45 | #include "llwlparammanager.h" | ||
46 | #include "lluuid.h" | ||
44 | 47 | ||
45 | LLDispatcher gGenericDispatcher; | 48 | LLDispatcher gGenericDispatcher; |
46 | 49 | ||
@@ -82,20 +85,96 @@ void process_generic_message(LLMessageSystem* msg, void**) | |||
82 | { | 85 | { |
83 | LLUUID agent_id; | 86 | LLUUID agent_id; |
84 | msg->getUUID("AgentData", "AgentID", agent_id); | 87 | msg->getUUID("AgentData", "AgentID", agent_id); |
85 | if (agent_id != gAgent.getID()) | 88 | std::string method; |
89 | msg->getStringFast(_PREHASH_MethodData, _PREHASH_Method, method); | ||
90 | |||
91 | if (method == "Windlight" && gSavedSettings.getBOOL("UseServersideWindlightSettings")) | ||
92 | { | ||
93 | //Meta7 WindLight packet | ||
94 | //We are delivering with an agentID of NULL_KEY so as to be | ||
95 | //friendly and not trigger a warning for unsupporting clients. | ||
96 | S32 count = msg->getNumberOfBlocksFast(_PREHASH_ParamList); | ||
97 | for (S32 i = 0; i < count; ++i) | ||
98 | { | ||
99 | // our param is binary data) | ||
100 | S32 size = msg->getSizeFast(_PREHASH_ParamList, i, _PREHASH_Parameter); | ||
101 | if (size >= 0) | ||
102 | { | ||
103 | char buf[250]; | ||
104 | msg->getBinaryDataFast( | ||
105 | _PREHASH_ParamList, _PREHASH_Parameter, | ||
106 | buf, size, i, 249); | ||
107 | |||
108 | Meta7WindlightPacket* wl = (Meta7WindlightPacket*)buf; | ||
109 | |||
110 | LLWaterParamManager * param_mgr = LLWaterParamManager::instance(); | ||
111 | LLWaterParamSet & param_set = param_mgr->mCurParams; | ||
112 | |||
113 | param_set.set("waterFogColor", wl->waterColor.red / 256.f, wl->waterColor.green / 256.f, wl->waterColor.blue / 256.f); | ||
114 | param_set.set("waterFogDensity", pow(2.0f, wl->waterFogDensityExponent)); | ||
115 | param_set.set("underWaterFogMod", wl->underwaterFogModifier); | ||
116 | param_set.set("normScale", wl->reflectionWaveletScale.X,wl->reflectionWaveletScale.Y,wl->reflectionWaveletScale.Z); | ||
117 | param_set.set("fresnelScale", wl->fresnelScale); | ||
118 | param_set.set("fresnelOffset", wl->fresnelOffset); | ||
119 | param_set.set("scaleAbove", wl->refractScaleAbove); | ||
120 | param_set.set("scaleBelow", wl->refractScaleBelow); | ||
121 | param_set.set("blurMultiplier", wl->blurMultiplier); | ||
122 | param_set.set("wave1Dir", wl->littleWaveDirection.X, wl->littleWaveDirection.Y); | ||
123 | param_set.set("wave2Dir", wl->bigWaveDirection.X, wl->bigWaveDirection.Y); | ||
124 | |||
125 | param_mgr->setParamSet( "Meta7CurrentRegion", param_set); | ||
126 | |||
127 | LLWLParamManager * wl_param_mgr = LLWLParamManager::instance(); | ||
128 | LLWLParamSet & wl_param_set = wl_param_mgr->mCurParams; | ||
129 | wl_param_set.setSunAngle(F_TWO_PI * wl->sunMoonPosiiton); | ||
130 | wl_param_set.setEastAngle(F_TWO_PI * wl->eastAngle); | ||
131 | wl_param_set.set("sunlight_color", wl->sunMoonColor.red * 3.0f, wl->sunMoonColor.green * 3.0f, wl->sunMoonColor.blue * 3.0f, wl->sunMoonColor.alpha * 3.0f); | ||
132 | wl_param_set.set("ambient", wl->ambient.red * 3.0f, wl->ambient.green * 3.0f, wl->ambient.blue * 3.0f, wl->ambient.alpha * 3.0f); | ||
133 | wl_param_set.set("blue_horizon", wl->horizon.red * 2.0f, wl->horizon.green *2.0f, wl->horizon.blue * 2.0f, wl->horizon.alpha * 2.0f); | ||
134 | wl_param_set.set("blue_density", wl->blueDensity.red * 2.0f, wl->blueDensity.green * 2.0f, wl->blueDensity.blue * 2.0f, wl->blueDensity.alpha * 2.0f); | ||
135 | wl_param_set.set("haze_horizon", wl->hazeHorizon, wl->hazeHorizon, wl->hazeHorizon, 1.f); | ||
136 | wl_param_set.set("haze_density", wl->hazeDensity, wl->hazeDensity, wl->hazeDensity, 1.f); | ||
137 | wl_param_set.set("cloud_shadow", wl->cloudCoverage, wl->cloudCoverage, wl->cloudCoverage, wl->cloudCoverage); | ||
138 | wl_param_set.set("density_multiplier", wl->densityMultiplier / 1000.0f); | ||
139 | wl_param_set.set("distance_multiplier", wl->distanceMultiplier, wl->distanceMultiplier, wl->distanceMultiplier, wl->distanceMultiplier); | ||
140 | wl_param_set.set("max_y",(F32)wl->maxAltitude); | ||
141 | wl_param_set.set("cloud_color", wl->cloudColor.red, wl->cloudColor.green, wl->cloudColor.blue, wl->cloudColor.alpha); | ||
142 | wl_param_set.set("cloud_pos_density1", wl->cloudXYDensity.X, wl->cloudXYDensity.Y, wl->cloudXYDensity.Z); | ||
143 | wl_param_set.set("cloud_pos_density2", wl->cloudDetailXYDensity.X, wl->cloudDetailXYDensity.Y, wl->cloudDetailXYDensity.Z); | ||
144 | wl_param_set.set("cloud_scale", wl->cloudScale, 0.f, 0.f, 1.f); | ||
145 | wl_param_set.set("gamma", wl->sceneGamma, wl->sceneGamma, wl->sceneGamma, 0.0f); | ||
146 | wl_param_set.set("glow",(2 - wl->sunGlowSize) * 20 , 0.f, -wl->sunGlowFocus * 5); | ||
147 | wl_param_set.setCloudScrollX(wl->cloudScrollX + 10.0f); | ||
148 | wl_param_set.setCloudScrollY(wl->cloudScrollY + 10.0f); | ||
149 | wl_param_set.setEnableCloudScrollX(!wl->cloudScrollXLock); | ||
150 | wl_param_set.setEnableCloudScrollY(!wl->cloudScrollYLock); | ||
151 | wl_param_set.setStarBrightness(wl->starBrightness); | ||
152 | wl_param_mgr->removeParamSet("Meta7-CurrentRegion",true); | ||
153 | wl_param_mgr->addParamSet( "Meta7-CurrentRegion", wl_param_set); | ||
154 | wl_param_mgr->savePreset( "Meta7-CurrentRegion"); | ||
155 | LLWLParamManager::instance()->mAnimator.mIsRunning = false; | ||
156 | LLWLParamManager::instance()->mAnimator.mUseLindenTime = false; | ||
157 | wl_param_mgr->loadPreset( "Meta7-CurrentRegion",true); | ||
158 | } | ||
159 | } | ||
160 | } | ||
161 | else if (agent_id != gAgent.getID()) | ||
86 | { | 162 | { |
87 | llwarns << "GenericMessage for wrong agent" << llendl; | 163 | llwarns << "GenericMessage for wrong agent" << llendl; |
88 | return; | 164 | return; |
89 | } | 165 | } |
166 | else | ||
167 | { | ||
90 | 168 | ||
91 | std::string request; | 169 | std::string request; |
92 | LLUUID invoice; | 170 | LLUUID invoice; |
93 | LLDispatcher::sparam_t strings; | 171 | LLDispatcher::sparam_t strings; |
94 | LLDispatcher::unpackMessage(msg, request, invoice, strings); | 172 | LLDispatcher::unpackMessage(msg, request, invoice, strings); |
95 | 173 | ||
96 | if(!gGenericDispatcher.dispatch(request, invoice, strings)) | 174 | if(!gGenericDispatcher.dispatch(request, invoice, strings)) |
97 | { | 175 | { |
98 | llwarns << "GenericMessage " << request << " failed to dispatch" | 176 | llwarns << "GenericMessage " << request << " failed to dispatch" |
99 | << llendl; | 177 | << llendl; |
178 | } | ||
100 | } | 179 | } |
101 | } | 180 | } |
diff --git a/linden/indra/newview/llviewergenericmessage.h b/linden/indra/newview/llviewergenericmessage.h index 6e1f094..6f54a28 100644 --- a/linden/indra/newview/llviewergenericmessage.h +++ b/linden/indra/newview/llviewergenericmessage.h | |||
@@ -30,7 +30,7 @@ | |||
30 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | 31 | * $/LicenseInfo$ |
32 | */ | 32 | */ |
33 | 33 | #include "lluuid.h" | |
34 | #ifndef LLVIEWERGENERICMESSAGE_H | 34 | #ifndef LLVIEWERGENERICMESSAGE_H |
35 | #define LLVIEWERGENERICMESSAGE_H | 35 | #define LLVIEWERGENERICMESSAGE_H |
36 | 36 | ||
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 1e185e6..0132f11 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -138,6 +138,9 @@ | |||
138 | #include "llviewerdisplay.h" | 138 | #include "llviewerdisplay.h" |
139 | #include "llkeythrottle.h" | 139 | #include "llkeythrottle.h" |
140 | 140 | ||
141 | #include "llwlparammanager.h" | ||
142 | #include "llwaterparammanager.h" | ||
143 | |||
141 | #include <boost/tokenizer.hpp> | 144 | #include <boost/tokenizer.hpp> |
142 | #include <boost/regex.hpp> // Boost Reg Expresions | 145 | #include <boost/regex.hpp> // Boost Reg Expresions |
143 | 146 | ||
@@ -3212,6 +3215,12 @@ void process_teleport_finish(LLMessageSystem* msg, void**) | |||
3212 | gCacheName->setUpstream(sim); | 3215 | gCacheName->setUpstream(sim); |
3213 | */ | 3216 | */ |
3214 | 3217 | ||
3218 | //Reset the windlight profile to default | ||
3219 | LLWLParamManager::instance()->mAnimator.mIsRunning = false; | ||
3220 | LLWLParamManager::instance()->mAnimator.mUseLindenTime = false; | ||
3221 | LLWLParamManager::instance()->loadPreset("Default", true); | ||
3222 | LLWaterParamManager::instance()->loadPreset("Default",true); | ||
3223 | |||
3215 | // now, use the circuit info to tell simulator about us! | 3224 | // now, use the circuit info to tell simulator about us! |
3216 | LL_INFOS("Messaging") << "process_teleport_finish() Enabling " | 3225 | LL_INFOS("Messaging") << "process_teleport_finish() Enabling " |
3217 | << sim_host << " with code " << msg->mOurCircuitCode << LL_ENDL; | 3226 | << sim_host << " with code " << msg->mOurCircuitCode << LL_ENDL; |
diff --git a/linden/indra/newview/meta7windlight.h b/linden/indra/newview/meta7windlight.h new file mode 100644 index 0000000..9bbdf69 --- /dev/null +++ b/linden/indra/newview/meta7windlight.h | |||
@@ -0,0 +1,96 @@ | |||
1 | struct M7Color3{ | ||
2 | M7Color3(){}; | ||
3 | M7Color3(F32 pRed, F32 pGreen, F32 pBlue) | ||
4 | { | ||
5 | red=pRed; | ||
6 | green=pGreen; | ||
7 | blue=pBlue; | ||
8 | } | ||
9 | F32 red; | ||
10 | F32 green; | ||
11 | F32 blue; | ||
12 | }; | ||
13 | |||
14 | struct M7Vector3 { | ||
15 | M7Vector3(){} | ||
16 | M7Vector3(F32 pX, F32 pY, F32 pZ) | ||
17 | { | ||
18 | X=pX; | ||
19 | Y=pY; | ||
20 | Z=pZ; | ||
21 | } | ||
22 | F32 X; | ||
23 | F32 Y; | ||
24 | F32 Z; | ||
25 | |||
26 | }; | ||
27 | |||
28 | struct M7Vector2{ | ||
29 | M7Vector2(){} | ||
30 | M7Vector2(F32 pX, F32 pY) | ||
31 | { | ||
32 | X=pX; | ||
33 | Y=pY; | ||
34 | } | ||
35 | F32 X; | ||
36 | F32 Y; | ||
37 | |||
38 | }; | ||
39 | |||
40 | struct M7Color4 { | ||
41 | M7Color4(){} | ||
42 | M7Color4(F32 pRed, F32 pGreen, F32 pBlue, F32 pAlpha) | ||
43 | { | ||
44 | red=pRed; | ||
45 | green=pGreen; | ||
46 | blue=pBlue; | ||
47 | alpha=pAlpha; | ||
48 | } | ||
49 | F32 red; | ||
50 | F32 green; | ||
51 | F32 blue; | ||
52 | F32 alpha; | ||
53 | }; | ||
54 | |||
55 | struct Meta7WindlightPacket { | ||
56 | Meta7WindlightPacket(){} | ||
57 | M7Color3 waterColor; | ||
58 | F32 waterFogDensityExponent; | ||
59 | F32 underwaterFogModifier; | ||
60 | M7Vector3 reflectionWaveletScale; | ||
61 | F32 fresnelScale; | ||
62 | F32 fresnelOffset; | ||
63 | F32 refractScaleAbove; | ||
64 | F32 refractScaleBelow; | ||
65 | F32 blurMultiplier; | ||
66 | M7Vector2 littleWaveDirection; | ||
67 | M7Vector2 bigWaveDirection; | ||
68 | LLUUID normalMapTexture; | ||
69 | M7Color4 horizon; | ||
70 | F32 hazeHorizon; | ||
71 | M7Color4 blueDensity; | ||
72 | F32 hazeDensity; | ||
73 | F32 densityMultiplier; | ||
74 | F32 distanceMultiplier; | ||
75 | M7Color4 sunMoonColor; | ||
76 | F32 sunMoonPosiiton; | ||
77 | M7Color4 ambient; | ||
78 | F32 eastAngle; | ||
79 | F32 sunGlowFocus; | ||
80 | F32 sunGlowSize; | ||
81 | F32 sceneGamma; | ||
82 | F32 starBrightness; | ||
83 | M7Color4 cloudColor; | ||
84 | M7Vector3 cloudXYDensity; | ||
85 | F32 cloudCoverage; | ||
86 | F32 cloudScale; | ||
87 | M7Vector3 cloudDetailXYDensity; | ||
88 | F32 cloudScrollX; | ||
89 | F32 cloudScrollY; | ||
90 | unsigned short maxAltitude; | ||
91 | char cloudScrollXLock; | ||
92 | char cloudScrollYLock; | ||
93 | char drawClassicClouds; | ||
94 | |||
95 | |||
96 | }; | ||