Join us in Outworldz at http://www.outworldz.com:9000 or follow us:

[Table of Contents]

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Lighting Lightshare  

Lightshare

Script for displaying a choice of Windlight settings.

Category: Lighting
By : Jeff Hall
Created: 2019-04-04 Edited: 2019-04-04
Worlds: Second Life

the Zip file

Download all files for Lightshare
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Lightshare.lsl
1
2 //###############################################################################
3 //###############################################################################
4 // Script for displaying a choice of Windlight settings. Jeff Hall, January 2015
5 // (Special thanks to Caro Fayray for testing the gizmo too:))
6 // The lightshare script function is restricted to the region owner only; the region owner
7 // must be the same as the object owner though anyone can change windlight after.
8 // Changes will be visible to everyone having lightshare enabled on his viewer.
9
10 // Provided under Creative Commons Attribution-Non-Commercial-ShareAlike 4.0 International license.
11 // Original Dark Blue settings from Wizardry and Steamworks 2012
12 // Please be sure you read and adhere to the terms of this license: http://creativecommons.org/licenses/by-nc-sa/4.0/
13
14 //REQUIREMENTS-------------------------------------------
15 // LightShare must be enabled in the simulator and viewer
16 // (http://opensimulator.org/wiki/LightShare)
17 // Opensim.ini:
18 // [LightShare]
19 // ; This enables the transmission of Windlight scenes to supporting clients, such as the Meta7 viewer.
20 // ; It has no ill effect on viewers which do not support server-side windlight settings.
21 // enable_windlight = true
22 // and
23 // [XEngine]
24 // ; Allow the user of LightShare functions
25 // AllowLightShareFunctions = true
26 // Viewer:
27 // example for Firestorm: Preferences/Opensim/Micellaneous -> Enable region Lightshare settings
28 // Update list of compatible viewers: http://opensimulator.org/wiki/Compatible_Viewers
29 // Successful tests were made with both MySQL and SQLite databases
30 // It might happen that some lightshare settings having floating values with many digits might have
31 // to be reapplied after a sim restart. It is possible however to increase the number of digits for
32 // fields having floating values like float(3,2) to float(9,6) for example in regionwindlight table
33 // in opensim database. Doing that will make lightshare settings always retained in database after a
34 // region restart.
35 // (Another possibility to insure settings retaining after a region restart can be done by using the
36 // Windlight-Scheduler normally included with the present Windlight-Displayer).
37
38 //-----------------------------------------------------
39 // This script is intended to offer a customised lightshare when running but it always offers the possibility
40 // to display default one if user chooses Default option button in menu and it will do as long as sim is running.
41 // Sim restart will show by default the last custom lightshare used and stored in [regionwindlight] database table.
42 // If you want to get back permanently to default lightshare settings remove the device and set back default display
43 // in region settings through your viewer.
44 // This displayer can be rezzed in more than one place in region; in such case they will sync together for displaying
45 // Current windlight name or Default one. This script is free to edit for windlight settings but keep in mind that you
46 // should always have same script in all displayers of your region.
47 // Settings descriptions are included at end.
48 // After rezzing device you might need to reset scripts: right-click on device, Edit/Content/Reset Scripts
49 // (or you can use top bar menu Build/Scripts/Reset scripts).
50 // Enjoy:)
51 //###############################################################################
52 //###############################################################################
53
54 integer ownerOnly = TRUE; // default FALSE; option to limitate windlight change to owner (if TRUE)
55
56 //--------------------------
57 integer dialogChannel = -256; //channel can be changed here if desired
58 list buttons = ["Dawn", "Sunset","Next","Starry","Glowing","Golden","Past", "Fog", "Deep Night","Dark Blue I","Dark Blue II","Evening"];
59 list buttons2 = ["Random","Default","Previous","Auroras","Blazing", "Tropical","Alien I","Alien II","Pastel", "Stormy I", "Stormy II", "Green"];
60
61 list lstWindlight = [];
62 string dialogInfo = "\nWindlight Setting\n\nPlease make a choice.";
63 key ToucherID;
64 key owner = "";
65 integer listenHandle;
66 float timerDelay = 10; // reapply periodically lightshare settings; default 10 - change to 0 for disabling but custom lightshare may not keep showing after tp back from another region.
67
68 integer blnActivateNext; //prevents multiple dialog windows on Next button with more than one gizmo in region
69 string strDeactivateNext = "2c2f8725-49b2-40c7-af2f-7d4fce2e9033";
70
71 list settings;
72
73 list settingsToRead =[WL_WATER_COLOR, WL_WATER_FOG_DENSITY_EXPONENT, WL_UNDERWATER_FOG_MODIFIER, WL_REFLECTION_WAVELET_SCALE, WL_FRESNEL_SCALE, WL_FRESNEL_OFFSET, WL_REFRACT_SCALE_ABOVE, WL_REFRACT_SCALE_BELOW, WL_BLUR_MULTIPLIER, WL_BIG_WAVE_DIRECTION, WL_LITTLE_WAVE_DIRECTION, WL_NORMAL_MAP_TEXTURE, WL_HAZE_HORIZON, WL_BLUE_DENSITY, WL_HORIZON, WL_DENSITY_MULTIPLIER, WL_DISTANCE_MULTIPLIER, WL_MAX_ALTITUDE, WL_SUN_MOON_COLOR, WL_AMBIENT, WL_SUN_MOON_POSITION, WL_EAST_ANGLE, WL_SUN_GLOW_SIZE, WL_SUN_GLOW_FOCUS, WL_SCENE_GAMMA, WL_STAR_BRIGHTNESS, WL_CLOUD_COLOR, WL_CLOUD_XY_DENSITY, WL_CLOUD_COVERAGE, WL_CLOUD_SCALE, WL_CLOUD_DETAIL_XY_DENSITY, WL_CLOUD_SCROLL_X, WL_CLOUD_SCROLL_Y, WL_CLOUD_SCROLL_Y_LOCK, WL_CLOUD_SCROLL_X_LOCK, WL_DRAW_CLASSIC_CLOUDS, WL_HAZE_DENSITY];
74
75
76 default
77
78 {
80
81 {
82
84 llSetText(")",<0,1,1>,1.0);
85 llSetTimerEvent(timerDelay);
86 owner = llGetOwner();
87
88 llSetTextureAnim( // a FUNCTION that requires the following PARAMETER list:
89 (0 // option list: use // to disable any you do not want.
90 | ANIM_ON // Disable this line to turn off animations.
91 | LOOP // repeat animation over and over. - almost always needed
92 //| REVERSE // animate in opposite direction.
93 // | PING_PONG // reverses completed animation back to starting point
94 | SMOOTH // disables flip-book style 'frames' animation
95 // | ROTATE // spins texture instead of offsetting it
96 // | SCALE // zoom/shrinks texture instead of offsetting it.
97 ),
98 ALL_SIDES, // One face number or ALL_SIDES. 0=top, 1=side, 2=bottom,... depending on shape.
99 0,0, // Grid Size, for 'frames' style animation, X frames wide, by Y Frames tall.
100 0.0, // START: first frame, or first offset, scale or rotation angle.
101 TWO_PI, // LENGTH: # of frames to show, distance to offset or scale, use TWO_PI for ROTATE!
102 0.07// "frames per second" smaller = slower
103 ); // End
104
105 listenHandle = llListen(dialogChannel, "", ToucherID, "");
106 blnActivateNext = FALSE;
107 }
108
109 on_rez (integer param)
110
111 {
113 }
114
115 touch_start(integer total_number)
116
117 {
118 if((ownerOnly == FALSE) || ( (ownerOnly == TRUE) && (llDetectedKey(0) == owner)))
119 {
120 llRegionSay(dialogChannel,strDeactivateNext); //initializes blnActivateNext
121 llSleep(0.1);
122 blnActivateNext = TRUE; //only touched displayer will show next dialog menu if clicked, not others listening if present in region
123 ToucherID = llDetectedKey(0);
124 llDialog(ToucherID, dialogInfo, buttons, dialogChannel);
125 }
126 else
127 {
128 llSay(0,"Actual settings only allow owner for changing windlight.");
129 }
130 }
131
132
133 listen(integer channel, string name, key id, string message)
134
135 {
136
137 //llListenRemove(listenHandle); //keep open for communicating if you have more than one windlight displayer in region
138
139 if(message == strDeactivateNext)
140 {
141 blnActivateNext = FALSE; //make sure other objects listening are correctly set
142 }
143
144
145 if(message == "Dark Blue I")
146 {
147 lstWindlight = [
148 WL_WATER_COLOR, <13, 97, 135>,
149 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
150 WL_UNDERWATER_FOG_MODIFIER, 0.25,
151 WL_REFLECTION_WAVELET_SCALE, <2.0, 2.0, 2.0>,
152 WL_FRESNEL_SCALE, 0.10,
153 WL_FRESNEL_OFFSET, 0.58,
154 WL_REFRACT_SCALE_ABOVE, 0.08,
155 WL_REFRACT_SCALE_BELOW, 0.20,
156 WL_BLUR_MULTIPLIER, 0.003,
157 WL_BIG_WAVE_DIRECTION, <0.50, -0.17, 0>,
158 WL_LITTLE_WAVE_DIRECTION, <0.58, -0.67, 0>,
159 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
160 WL_HAZE_HORIZON, 0.33,
161 WL_BLUE_DENSITY, <0.13, 0.21, 0.34, 0.34>,
162 WL_HORIZON, <0.24,0.40,0.46,0.46>,
163 WL_DENSITY_MULTIPLIER, 0.01,
164 WL_DISTANCE_MULTIPLIER, 0.7,
165 WL_MAX_ALTITUDE, 711,
166 WL_SUN_MOON_COLOR, <0.21,0.23,0.29,0.29>,
167 WL_AMBIENT, <0.09,0.15,0.25,0.25>,
168 WL_SUN_MOON_POSITION, 0.375,
169 WL_EAST_ANGLE, 0.50,
170 WL_SUN_GLOW_SIZE, 1.79,
171 WL_SUN_GLOW_FOCUS, 0.10,
172 WL_SCENE_GAMMA, 1.61,
173 WL_STAR_BRIGHTNESS, 0.00,
174 WL_CLOUD_COLOR, <0.53,0.53,0.53,0.53>,
175 WL_CLOUD_XY_DENSITY, <0.73,0.34,0.33>,
176 WL_CLOUD_COVERAGE, 0.26,
177 WL_CLOUD_SCALE, 0.33,
178 WL_CLOUD_DETAIL_XY_DENSITY, <0.29,0.85,0.02>,
179 WL_CLOUD_SCROLL_X, 0.50,
180 WL_CLOUD_SCROLL_Y, 0.51,
181 WL_CLOUD_SCROLL_Y_LOCK, 0,
182 WL_CLOUD_SCROLL_X_LOCK, 0,
183 WL_DRAW_CLASSIC_CLOUDS, 1,
184 WL_HAZE_DENSITY, 0.7
185 ];
186
187 lsSetWindlightScene(lstWindlight);
188 }
189
190 if(message == "Dark Blue II")
191 {
192 lstWindlight = [
193 WL_WATER_COLOR, <13, 97, 135>,
194 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
195 WL_UNDERWATER_FOG_MODIFIER, 0.25,
196 WL_REFLECTION_WAVELET_SCALE, <2.0, 2.0, 2.0>,
197 WL_FRESNEL_SCALE, 0.10,
198 WL_FRESNEL_OFFSET, 0.58,
199 WL_REFRACT_SCALE_ABOVE, 0.08,
200 WL_REFRACT_SCALE_BELOW, 0.20,
201 WL_BLUR_MULTIPLIER, 0.003,
202 WL_BIG_WAVE_DIRECTION, <0.50, -0.17, 0>,
203 WL_LITTLE_WAVE_DIRECTION, <0.58, -0.67, 0>,
204 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
205 WL_HAZE_HORIZON, 0.33,
206 WL_BLUE_DENSITY, <0.0, 0.0, 0.0, 0.0>,
207 WL_HORIZON, <0.24,0.40,0.46,0.46>,
208 WL_DENSITY_MULTIPLIER, 0.01,
209 WL_DISTANCE_MULTIPLIER, 0.7,
210 WL_MAX_ALTITUDE, 711,
211 WL_SUN_MOON_COLOR, <0.07,0.06,0.07,0.29>,
212 WL_AMBIENT, <0.09,0.15,0.25,0.25>,
213 WL_SUN_MOON_POSITION, 0.375,
214 WL_EAST_ANGLE, 0.50,
215 WL_SUN_GLOW_SIZE, 1.79,
216 WL_SUN_GLOW_FOCUS, 0.1,
217 WL_SCENE_GAMMA, 2.5,
218 WL_STAR_BRIGHTNESS, 0.00,
219 WL_CLOUD_COLOR, <0.53,0.53,0.53,0.53>,
220 WL_CLOUD_XY_DENSITY, <0.73,0.34,0.33>,
221 WL_CLOUD_COVERAGE, 0.26,
222 WL_CLOUD_SCALE, 0.33,
223 WL_CLOUD_DETAIL_XY_DENSITY, <0.29,0.85,0.02>,
224 WL_CLOUD_SCROLL_X, 0.50,
225 WL_CLOUD_SCROLL_Y, 0.51,
226 WL_CLOUD_SCROLL_Y_LOCK, 0,
227 WL_CLOUD_SCROLL_X_LOCK, 0,
228 WL_DRAW_CLASSIC_CLOUDS, 1,
229 WL_HAZE_DENSITY, 0.7
230
231 ];
232
233 lsSetWindlightScene(lstWindlight);
234
235 }
236
237
238 if(message == "Evening")
239 {
240 lstWindlight = [
241 WL_WATER_COLOR, <13, 97, 135>,
242 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
243 WL_UNDERWATER_FOG_MODIFIER, 0.25,
244 WL_REFLECTION_WAVELET_SCALE, <2.0, 2.0, 2.0>,
245 WL_FRESNEL_SCALE, 0.10,
246 WL_FRESNEL_OFFSET, 0.58,
247 WL_REFRACT_SCALE_ABOVE, 0.08,
248 WL_REFRACT_SCALE_BELOW, 0.20,
249 WL_BLUR_MULTIPLIER, 0.003,
250 WL_BIG_WAVE_DIRECTION, <0.50, -0.17, 0>,
251 WL_LITTLE_WAVE_DIRECTION, <0.58, -0.67, 0>,
252 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
253 WL_HAZE_HORIZON, 0.33,
254 WL_BLUE_DENSITY, <0.13, 0.21, 0.34, 0.34>,
255 WL_HORIZON, <0.12,0.20,0.25,0.46>,
256 WL_DENSITY_MULTIPLIER, 0.01,
257 WL_DISTANCE_MULTIPLIER, 0.7,
258 WL_MAX_ALTITUDE, 711,
259 WL_SUN_MOON_COLOR, <0.14,0.12,0.14,0.29>,
260 WL_AMBIENT, <0.05,0.07,0.12,0.25>,
261 WL_SUN_MOON_POSITION, 0.375,
262 WL_EAST_ANGLE, 0.50,
263 WL_SUN_GLOW_SIZE, 1.79,
264 WL_SUN_GLOW_FOCUS, 0.10,
265 WL_SCENE_GAMMA, 0.5,
266 WL_STAR_BRIGHTNESS, 0.00,
267 WL_CLOUD_COLOR, <0.53,0.53,0.53,0.53>,
268 WL_CLOUD_XY_DENSITY, <0.73,0.34,0.33>,
269 WL_CLOUD_COVERAGE, 0.35,
270 WL_CLOUD_SCALE, 0.45,
271 WL_CLOUD_DETAIL_XY_DENSITY, <0.29,0.85,0.02>,
272 WL_CLOUD_SCROLL_X, 0.50,
273 WL_CLOUD_SCROLL_Y, -0.51,
274 WL_CLOUD_SCROLL_Y_LOCK, 0,
275 WL_CLOUD_SCROLL_X_LOCK, 0,
276 WL_DRAW_CLASSIC_CLOUDS, 1,
277 WL_HAZE_DENSITY, 0.7
278 ];
279
280 lsSetWindlightScene(lstWindlight);
281
282 }
283
284
285 if(message == "Past")
286 {
287 lstWindlight = [
288 WL_WATER_COLOR, <220, 220, 195>,
289 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
290 WL_UNDERWATER_FOG_MODIFIER, 0.25,
291 WL_REFLECTION_WAVELET_SCALE, <2.0, 2.0, 2.0>,
292 WL_FRESNEL_SCALE, 0.10,
293 WL_FRESNEL_OFFSET, 0.58,
294 WL_REFRACT_SCALE_ABOVE, 0.08,
295 WL_REFRACT_SCALE_BELOW, 0.20,
296 WL_BLUR_MULTIPLIER, 0.003,
297 WL_BIG_WAVE_DIRECTION, <0.50, -0.17, 0>,
298 WL_LITTLE_WAVE_DIRECTION, <0.58, -0.67, 0>,
299 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
300 WL_HAZE_HORIZON, 0.50,
301 WL_BLUE_DENSITY, <0.0, 0.0, 0.0, 0.0>,
302 WL_HORIZON, <0.24,0.40,0.46,0.46>,
303 WL_DENSITY_MULTIPLIER, 0.01,
304 WL_DISTANCE_MULTIPLIER, 0.7,
305 WL_MAX_ALTITUDE, 711,
306 WL_SUN_MOON_COLOR, <0.07,0.06,0.07,0.29>,
307 WL_AMBIENT, <0.4,0.4,0.25,0.25>,
308 WL_SUN_MOON_POSITION, 0.375,
309 WL_EAST_ANGLE, 0.50,
310 WL_SUN_GLOW_SIZE, 1.79,
311 WL_SUN_GLOW_FOCUS, 0.1,
312 WL_SCENE_GAMMA, 2.0,
313 WL_STAR_BRIGHTNESS, 0.00,
314 WL_CLOUD_COLOR, <0.53,0.53,0.53,0.53>,
315 WL_CLOUD_XY_DENSITY, <0.73,0.34,0.33>,
316 WL_CLOUD_COVERAGE, 0.26,
317 WL_CLOUD_SCALE, 0.33,
318 WL_CLOUD_DETAIL_XY_DENSITY, <0.29,0.85,0.02>,
319 WL_CLOUD_SCROLL_X, 0.50,
320 WL_CLOUD_SCROLL_Y, 0.51,
321 WL_CLOUD_SCROLL_Y_LOCK, 0,
322 WL_CLOUD_SCROLL_X_LOCK, 0,
323 WL_DRAW_CLASSIC_CLOUDS, 1,
324 WL_HAZE_DENSITY, 0.7
325 ];
326
327 lsSetWindlightScene(lstWindlight);
328
329 }
330
331 if(message == "Fog")
332 {
333 lstWindlight = [
334 WL_WATER_COLOR, <220, 220, 195>,
335 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
336 WL_UNDERWATER_FOG_MODIFIER, 0.25,
337 WL_REFLECTION_WAVELET_SCALE, <2.0, 2.0, 2.0>,
338 WL_FRESNEL_SCALE, 0.10,
339 WL_FRESNEL_OFFSET, 0.58,
340 WL_REFRACT_SCALE_ABOVE, 0.08,
341 WL_REFRACT_SCALE_BELOW, 0.20,
342 WL_BLUR_MULTIPLIER, 0.003,
343 WL_BIG_WAVE_DIRECTION, <0.50, -0.17, 0>,
344 WL_LITTLE_WAVE_DIRECTION, <0.58, -0.67, 0>,
345 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
346 WL_HAZE_HORIZON, 0.8,
347 WL_BLUE_DENSITY, <0.0, 0.0, 0.0, 0.0>,
348 WL_HORIZON, <0.24,0.40,0.46,0.46>,
349 WL_DENSITY_MULTIPLIER, 0.2,
350 WL_DISTANCE_MULTIPLIER, 80,
351 WL_MAX_ALTITUDE, 711,
352 WL_SUN_MOON_COLOR, <0.07,0.06,0.07,0.29>,
353 WL_AMBIENT, <0.05,0.05,0.03,0.03>,
354 WL_SUN_MOON_POSITION, 0.375,
355 WL_EAST_ANGLE, 0.50,
356 WL_SUN_GLOW_SIZE, 1.79,
357 WL_SUN_GLOW_FOCUS, 0.1,
358 WL_SCENE_GAMMA, 2.5,
359 WL_STAR_BRIGHTNESS, 0.00,
360 WL_CLOUD_COLOR, <0.53,0.53,0.53,0.53>,
361 WL_CLOUD_XY_DENSITY, <0.73,0.34,0.33>,
362 WL_CLOUD_COVERAGE, 0.35,
363 WL_CLOUD_SCALE, 0.33,
364 WL_CLOUD_DETAIL_XY_DENSITY, <0.29,0.85,0.02>,
365 WL_CLOUD_SCROLL_X, -0.25,
366 WL_CLOUD_SCROLL_Y, 0.25,
367 WL_CLOUD_SCROLL_Y_LOCK, 0,
368 WL_CLOUD_SCROLL_X_LOCK, 0,
369 WL_DRAW_CLASSIC_CLOUDS, 1,
370 WL_HAZE_DENSITY, 0.7
371
372 ];
373
374 lsSetWindlightScene(lstWindlight);
375 }
376
377
378 if(message == "Deep Night")
379 {
380 lstWindlight = [
381
382 WL_WATER_COLOR, <13, 97, 135>,
383 WL_WATER_FOG_DENSITY_EXPONENT, 0.0,
384 WL_UNDERWATER_FOG_MODIFIER, 0.201542,
385 WL_REFLECTION_WAVELET_SCALE, <2.000000,2.000000,2.000000>,
386 WL_FRESNEL_SCALE, 0.1,
387 WL_FRESNEL_OFFSET, 0.58,
388 WL_REFRACT_SCALE_ABOVE, 0.08,
389 WL_REFRACT_SCALE_BELOW, 0.2,
390 WL_BLUR_MULTIPLIER, 0.003,
391 WL_BIG_WAVE_DIRECTION, <0.500000,-0.170000,0.000000>,
392 WL_LITTLE_WAVE_DIRECTION, <0.580000,-0.670000,0.000000>,
393 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
394 WL_HAZE_HORIZON, 0.33,
395 WL_BLUE_DENSITY, <0.130000,0.210000,0.340000,0.340000>,
396 WL_HORIZON, <0.285776,0.350453,0.211813,0.094694>,
397 WL_DENSITY_MULTIPLIER, 0.000076,
398 WL_DISTANCE_MULTIPLIER, 0.7,
399 WL_MAX_ALTITUDE, 931,
400 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
401 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
402 WL_SUN_MOON_POSITION, 0.575061,
403 WL_EAST_ANGLE, 0.5,
404 WL_SUN_GLOW_SIZE, 1.79,
405 WL_SUN_GLOW_FOCUS, 0.1,
406 WL_SCENE_GAMMA, 1.61,
407 WL_STAR_BRIGHTNESS, 0,
408 WL_CLOUD_COLOR, <0.530000,0.530000,0.530000,0.530000>,
409 WL_CLOUD_XY_DENSITY, <0.730000,0.340000,0.330000>,
410 WL_CLOUD_COVERAGE, 0.26,
411 WL_CLOUD_SCALE, 0.33,
412 WL_CLOUD_DETAIL_XY_DENSITY, <0.290000,0.850000,0.020000>,
413 WL_CLOUD_SCROLL_X, -0.5,
414 WL_CLOUD_SCROLL_Y, 0.51,
415 WL_CLOUD_SCROLL_Y_LOCK, 0,
416 WL_CLOUD_SCROLL_X_LOCK, 0,
417 WL_DRAW_CLASSIC_CLOUDS, 1,
418 WL_HAZE_DENSITY, 0.7
419
420 ];
421
422 lsSetWindlightScene(lstWindlight);
423
424 }
425
426
427 if(message == "Starry")
428 {
429 lstWindlight = [
430
431 WL_WATER_COLOR, <0,0,128>,
432 WL_WATER_FOG_DENSITY_EXPONENT, 0.806602,
433 WL_UNDERWATER_FOG_MODIFIER, 0.448619,
434 WL_REFLECTION_WAVELET_SCALE, <1.768648,1.242124,7.178653>,
435 WL_FRESNEL_SCALE, 0.266238,
436 WL_FRESNEL_OFFSET, 0.639828,
437 WL_REFRACT_SCALE_ABOVE, 0.378514,
438 WL_REFRACT_SCALE_BELOW, 0.877668,
439 WL_BLUR_MULTIPLIER, 0.084658,
440 WL_BIG_WAVE_DIRECTION, <0.81,0.621785,0.000000>,
441 WL_LITTLE_WAVE_DIRECTION, <0.042799,0.56936,0.000000>,
442 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
443 WL_HAZE_HORIZON, 0.098134,
444 WL_BLUE_DENSITY, <0.427008,0.535837,0.957327,0.663032>,
445 WL_HORIZON, <0.528483,0.659543,0.900877,0.495787>,
446 WL_DENSITY_MULTIPLIER, 0.000703,
447 WL_DISTANCE_MULTIPLIER, 1.074452,
448 WL_MAX_ALTITUDE, 324,
449 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
450 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
451 WL_SUN_MOON_POSITION, 0.66092,
452 WL_EAST_ANGLE, 0.602004,
453 WL_SUN_GLOW_SIZE, 0.450286,
454 WL_SUN_GLOW_FOCUS, 0.078417,
455 WL_SCENE_GAMMA, 1.0,
456 WL_STAR_BRIGHTNESS, 1.99,
457 WL_CLOUD_COLOR, <0.613282,0.836680,0.582055,0.301782>,
458 WL_CLOUD_XY_DENSITY, <0.775693,0.040026,0.609956>,
459 WL_CLOUD_COVERAGE, 0.12,
460 WL_CLOUD_SCALE, 0.455395,
461 WL_CLOUD_DETAIL_XY_DENSITY, <0.398200,0.118275,0.867201>,
462 WL_CLOUD_SCROLL_X, 0.5,
463 WL_CLOUD_SCROLL_Y, 0.51,
464 WL_CLOUD_SCROLL_Y_LOCK, 0,
465 WL_CLOUD_SCROLL_X_LOCK, 0,
466 WL_DRAW_CLASSIC_CLOUDS, 1,
467 WL_HAZE_DENSITY, 3.95
468
469 ];
470
471 lsSetWindlightScene(lstWindlight);
472 }
473
474
475 if(message == "Glowing")
476 {
477 lstWindlight = [
478
479 WL_WATER_COLOR, <0.0,143.0,175.0>,
480 WL_WATER_FOG_DENSITY_EXPONENT, 1.156439,
481 WL_UNDERWATER_FOG_MODIFIER, 0.969125,
482 WL_REFLECTION_WAVELET_SCALE, <8.482132,9.775111,4.452634>,
483 WL_FRESNEL_SCALE, 0.546374,
484 WL_FRESNEL_OFFSET, 0.503164,
485 WL_REFRACT_SCALE_ABOVE, 0.628186,
486 WL_REFRACT_SCALE_BELOW, 0.980204,
487 WL_BLUR_MULTIPLIER, 0.03555,
488 WL_BIG_WAVE_DIRECTION, <1.05452,1.07541,0.000000>,
489 WL_LITTLE_WAVE_DIRECTION, <1.120385,1.155334,0.000000>,
490 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
491 WL_HAZE_HORIZON, 0.472696,
492 WL_BLUE_DENSITY, <0.622049,0.798068,0.097409,0.597018>,
493 WL_HORIZON, <0.0,0.30,0.85,0.32>,
494 WL_DENSITY_MULTIPLIER, 0.039702,
495 WL_DISTANCE_MULTIPLIER, 4.824,
496 WL_MAX_ALTITUDE, 44,
497 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
498 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
499 WL_SUN_MOON_POSITION, 0.365929,
500 WL_EAST_ANGLE, 0.883019,
501 WL_SUN_GLOW_SIZE, 1.780648,
502 WL_SUN_GLOW_FOCUS, 0.073334,
503 WL_SCENE_GAMMA, 0.646127,
504 WL_STAR_BRIGHTNESS, 1.301247,
505 WL_CLOUD_COLOR, <0.979874,0.169159,0.049543,0.470948>,
506 WL_CLOUD_XY_DENSITY, <0.715409,0.414984,0.128918>,
507 WL_CLOUD_COVERAGE, 0.493855,
508 WL_CLOUD_SCALE, 0.656979,
509 WL_CLOUD_DETAIL_XY_DENSITY, <0.182797,0.031768,0.981983>,
510 WL_CLOUD_SCROLL_X, 0.5,
511 WL_CLOUD_SCROLL_Y, 0.51,
512 WL_CLOUD_SCROLL_Y_LOCK, 0,
513 WL_CLOUD_SCROLL_X_LOCK, 0,
514 WL_DRAW_CLASSIC_CLOUDS, 1,
515 WL_HAZE_DENSITY, 2.439926
516
517 ];
518
519 lsSetWindlightScene(lstWindlight);
520 }
521
522
523 if(message == "Golden")
524 {
525 lstWindlight = [
526
527 WL_WATER_COLOR, <70.000000,105.000000,225.000000>,
528 WL_WATER_FOG_DENSITY_EXPONENT, 1.074903,
529 WL_UNDERWATER_FOG_MODIFIER, 0.139087,
530 WL_REFLECTION_WAVELET_SCALE, <4.759264,5.874388,4.500500>,
531 WL_FRESNEL_SCALE, 0.769096,
532 WL_FRESNEL_OFFSET, 0.55626,
533 WL_REFRACT_SCALE_ABOVE, 0.178062,
534 WL_REFRACT_SCALE_BELOW, 0.292827,
535 WL_BLUR_MULTIPLIER, 0.00557,
536 WL_BIG_WAVE_DIRECTION, <1.117288,1.092456,0.000000>,
537 WL_LITTLE_WAVE_DIRECTION, <1.029926,1.073620,0.000000>,
538 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
539 WL_HAZE_HORIZON, 0.464688,
540 WL_BLUE_DENSITY, <0.884736,0.505738,0.718928,0.116796>,
541 WL_HORIZON, <0.873863,0.656011,0.048029,0.027890>,
542 WL_DENSITY_MULTIPLIER, 0.017132,
543 WL_DISTANCE_MULTIPLIER, 9.799045,
544 WL_MAX_ALTITUDE, 1647,
545 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
546 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
547 WL_SUN_MOON_POSITION, 0.260481,
548 WL_EAST_ANGLE, 0.391493,
549 WL_SUN_GLOW_SIZE, 1.916126,
550 WL_SUN_GLOW_FOCUS, 0.336887,
551 WL_SCENE_GAMMA, 1.25,
552 WL_STAR_BRIGHTNESS, 1.493026,
553 WL_CLOUD_COLOR, <0.646161,0.607957,0.273940,0.298599>,
554 WL_CLOUD_XY_DENSITY, <0.903541,0.279909,0.248966>,
555 WL_CLOUD_COVERAGE, 0.054694,
556 WL_CLOUD_SCALE, 0.364161,
557 WL_CLOUD_DETAIL_XY_DENSITY, <0.451154,0.719094,0.904059>,
558 WL_CLOUD_SCROLL_X, 0.5,
559 WL_CLOUD_SCROLL_Y, 0.51,
560 WL_CLOUD_SCROLL_Y_LOCK, 0,
561 WL_CLOUD_SCROLL_X_LOCK, 0,
562 WL_DRAW_CLASSIC_CLOUDS, 1,
563 WL_HAZE_DENSITY, 1.264978
564
565 ];
566
567 lsSetWindlightScene(lstWindlight);
568
569 }
570
571
572 if(message == "Dawn")
573 {
574 lstWindlight = [
575
576 WL_WATER_COLOR, <24.0,116.0,204.0>,
577 WL_WATER_FOG_DENSITY_EXPONENT, 1.361316,
578 WL_UNDERWATER_FOG_MODIFIER, 0.310014,
579 WL_REFLECTION_WAVELET_SCALE, <9.080267,9.881126,4.626266>,
580 WL_FRESNEL_SCALE, 0.289506,
581 WL_FRESNEL_OFFSET, 0.465959,
582 WL_REFRACT_SCALE_ABOVE, 0.1,
583 WL_REFRACT_SCALE_BELOW, 0.2,
584 WL_BLUR_MULTIPLIER, 0.068954,
585 WL_BIG_WAVE_DIRECTION, <0.5025839,0.519449,0.000000>,
586 WL_LITTLE_WAVE_DIRECTION, <0.5020831,0.51808,0.000000>,
587 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
588 WL_HAZE_HORIZON, 0.6,
589 WL_BLUE_DENSITY, <0.452756,0.744644,0.876003,0.148455>,
590 WL_HORIZON, <0.1,0.015,0.015,0.5>,
591 WL_DENSITY_MULTIPLIER, 0.01,
592 WL_DISTANCE_MULTIPLIER, 5,
593 WL_MAX_ALTITUDE, 286,
594 WL_SUN_MOON_COLOR, <0.500000,0.230000,0.290000,0.290000>,
595 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
596 WL_SUN_MOON_POSITION, 0.044625,
597 WL_EAST_ANGLE, 0.0,
598 WL_SUN_GLOW_SIZE, 0.566237,
599 WL_SUN_GLOW_FOCUS, 0.062125,
600 WL_SCENE_GAMMA, 1.317128,
601 WL_STAR_BRIGHTNESS, 0.179336,
602 WL_CLOUD_COLOR, <0.2,0.5,0.98,0.5>,
603 WL_CLOUD_XY_DENSITY, <0.325122,0.528978,0.082439>,
604 WL_CLOUD_COVERAGE, 0.452798,
605 WL_CLOUD_SCALE, 0.317025,
606 WL_CLOUD_DETAIL_XY_DENSITY, <0.593138,0.719283,0.743420>,
607 WL_CLOUD_SCROLL_X, 0.5,
608 WL_CLOUD_SCROLL_Y, 0.51,
609 WL_CLOUD_SCROLL_Y_LOCK, 0,
610 WL_CLOUD_SCROLL_X_LOCK, 0,
611 WL_DRAW_CLASSIC_CLOUDS, 1,
612 WL_HAZE_DENSITY, 1.154176
613
614 ];
615
616 lsSetWindlightScene(lstWindlight);
617
618 }
619
620
621
622 if(message == "Sunset")
623 {
624 lstWindlight = [
625 WL_WATER_COLOR, <24.0,116.0,204.0>,
626 WL_WATER_FOG_DENSITY_EXPONENT, 1.361316,
627 WL_UNDERWATER_FOG_MODIFIER, 0.310014,
628 WL_REFLECTION_WAVELET_SCALE, <9.080267,9.881126,4.626266>,
629 WL_FRESNEL_SCALE, 0.489506,
630 WL_FRESNEL_OFFSET, 0.465959,
631 WL_REFRACT_SCALE_ABOVE, 0.1,
632 WL_REFRACT_SCALE_BELOW, 0.2,
633 WL_BLUR_MULTIPLIER, 0.068954,
634 WL_BIG_WAVE_DIRECTION, <0.625839,0.75449,0.000000>,
635 WL_LITTLE_WAVE_DIRECTION, <0.5831,0.61808,0.000000>,
636 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
637 WL_HAZE_HORIZON, 0.3,
638 WL_BLUE_DENSITY, <0.1,0.2,0.96003,0.5>,
639 WL_HORIZON, <0.6,0.35,0.05,0.5>,
640 WL_DENSITY_MULTIPLIER, 0.01,
641 WL_DISTANCE_MULTIPLIER, 5,
642 WL_MAX_ALTITUDE, 1000,
643 WL_SUN_MOON_COLOR, <0.600000,0.230000,0.290000,0.290000>,
644 WL_AMBIENT, <0.5,0.2,0.2,0.250000>,
645 WL_SUN_MOON_POSITION, 0.044625,
646 WL_EAST_ANGLE, 0.5,
647 WL_SUN_GLOW_SIZE, 0.566237,
648 WL_SUN_GLOW_FOCUS, 0.062125,
649 WL_SCENE_GAMMA, 1.0,
650 WL_STAR_BRIGHTNESS, 0.179336,
651 WL_CLOUD_COLOR, <0.9,0.01,0.01,0.5>,
652 WL_CLOUD_XY_DENSITY, <0.325122,0.528978,0.082439>,
653 WL_CLOUD_COVERAGE, 0.4,
654 WL_CLOUD_SCALE, 0.317025,
655 WL_CLOUD_DETAIL_XY_DENSITY, <0.593138,0.719283,0.743420>,
656 WL_CLOUD_SCROLL_X, 0.6,
657 WL_CLOUD_SCROLL_Y, 0.6,
658 WL_CLOUD_SCROLL_Y_LOCK, 0,
659 WL_CLOUD_SCROLL_X_LOCK, 0,
660 WL_DRAW_CLASSIC_CLOUDS, 1,
661 WL_HAZE_DENSITY, 1.154176
662
663 ];
664
665 lsSetWindlightScene(lstWindlight);
666
667 }
668
669 if(message == "Auroras")
670 {
671 lstWindlight = [
672 WL_WATER_COLOR, <4,45,59>,
673 WL_WATER_FOG_DENSITY_EXPONENT, 4.546884,
674 WL_UNDERWATER_FOG_MODIFIER, 0.512493,
675 WL_REFLECTION_WAVELET_SCALE, <4.469752,8.397901,6.772451>,
676 WL_FRESNEL_SCALE, 0.740427,
677 WL_FRESNEL_OFFSET, 0.429028,
678 WL_REFRACT_SCALE_ABOVE, 0.163292,
679 WL_REFRACT_SCALE_BELOW, 0.255536,
680 WL_BLUR_MULTIPLIER, 0.036157,
681 WL_BIG_WAVE_DIRECTION, <1.0337,1.097433,0.000000>,
682 WL_LITTLE_WAVE_DIRECTION, <1.064652,1.104659,0.000000>,
683 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
684 WL_HAZE_HORIZON, 0.555065,
685 WL_BLUE_DENSITY, <0.533372,0.948385,0.035603,0.789831>,
686 WL_HORIZON, <0.205941,0.659320,0.440049,0.893509>,
687 WL_DENSITY_MULTIPLIER, 0.008022,
688 WL_DISTANCE_MULTIPLIER, 1.312191,
689 WL_MAX_ALTITUDE, 851,
690 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
691 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
692 WL_SUN_MOON_POSITION, 0.522986,
693 WL_EAST_ANGLE, 0.070157,
694 WL_SUN_GLOW_SIZE, 0.923597,
695 WL_SUN_GLOW_FOCUS, 0.214807,
696 WL_SCENE_GAMMA, 1.352096,
697 WL_STAR_BRIGHTNESS, 0.779212,
698 WL_CLOUD_COLOR, <0.613282,0.836680,0.582055,0.301782>,
699 WL_CLOUD_XY_DENSITY, <0.775693,0.040026,0.609956>,
700 WL_CLOUD_COVERAGE, 0.10,
701 WL_CLOUD_SCALE, 0.30,
702 WL_CLOUD_DETAIL_XY_DENSITY, <0.398200,0.118275,0.867201>,
703 WL_CLOUD_SCROLL_X, 1.5,
704 WL_CLOUD_SCROLL_Y, -1.21,
705 WL_CLOUD_SCROLL_Y_LOCK, 0,
706 WL_CLOUD_SCROLL_X_LOCK, 0,
707 WL_DRAW_CLASSIC_CLOUDS, 1,
708 WL_HAZE_DENSITY, 3.053385
709
710 ];
711
712 lsSetWindlightScene(lstWindlight);
713
714 }
715
716 if(message == "Blazing")
717 {
718 lstWindlight = [
719 WL_WATER_COLOR, <12.000000,11.000000,242.000000>,
720 WL_WATER_FOG_DENSITY_EXPONENT, 3.2,
721 WL_UNDERWATER_FOG_MODIFIER, 0.2,
722 WL_REFLECTION_WAVELET_SCALE, <5.003543,3.677973,7.428368>,
723 WL_FRESNEL_SCALE, 0.364123,
724 WL_FRESNEL_OFFSET, 0.806711,
725 WL_REFRACT_SCALE_ABOVE, 0.25,
726 WL_REFRACT_SCALE_BELOW, 0.41,
727 WL_BLUR_MULTIPLIER, 0.122565,
728 WL_BIG_WAVE_DIRECTION, <1.190023,1.169864,0.000000>,
729 WL_LITTLE_WAVE_DIRECTION, <1.294151,0.332772,0.000000>,
730 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
731 WL_HAZE_HORIZON, 0.14245,
732 WL_BLUE_DENSITY, <0.12,0.22,0.6,0.38>,
733 WL_HORIZON, <0.01,0.01,0.95,0.473398>,
734 WL_DENSITY_MULTIPLIER, 0.015,
735 WL_DISTANCE_MULTIPLIER, 5.983785,
736 WL_MAX_ALTITUDE, 1273,
737 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
738 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
739 WL_SUN_MOON_POSITION, 0.421118,
740 WL_EAST_ANGLE, 0.465805,
741 WL_SUN_GLOW_SIZE, 1.843351,
742 WL_SUN_GLOW_FOCUS, 0.100182,
743 WL_SCENE_GAMMA, 0.799964,
744 WL_STAR_BRIGHTNESS, 1.688747,
745 WL_CLOUD_COLOR, <0.926600,0.639131,0.015565,0.787496>,
746 WL_CLOUD_XY_DENSITY, <0.378630,0.555684,0.376508>,
747 WL_CLOUD_COVERAGE, 0.664558,
748 WL_CLOUD_SCALE, 0.538342,
749 WL_CLOUD_DETAIL_XY_DENSITY, <0.638437,0.377386,0.066438>,
750 WL_CLOUD_SCROLL_X, 0.5,
751 WL_CLOUD_SCROLL_Y, 0.51,
752 WL_CLOUD_SCROLL_Y_LOCK, 0,
753 WL_CLOUD_SCROLL_X_LOCK, 0,
754 WL_DRAW_CLASSIC_CLOUDS, 1,
755 WL_HAZE_DENSITY, 0.411159
756
757 ];
758
759 lsSetWindlightScene(lstWindlight);
760
761 }
762
763 if(message == "Tropical")
764 {
765 lstWindlight = [
766 WL_WATER_COLOR, <2,92,118>,
767 WL_WATER_FOG_DENSITY_EXPONENT, 0.857744,
768 WL_UNDERWATER_FOG_MODIFIER, 0.302291,
769 WL_REFLECTION_WAVELET_SCALE, <0.122116,4.969574,4.639734>,
770 WL_FRESNEL_SCALE, 0.5,
771 WL_FRESNEL_OFFSET, 0.144779,
772 WL_REFRACT_SCALE_ABOVE, 0.1,
773 WL_REFRACT_SCALE_BELOW, 0.227461,
774 WL_BLUR_MULTIPLIER, 0.129715,
775 WL_BIG_WAVE_DIRECTION, <1.120768,0.014471,0.000000>,
776 WL_LITTLE_WAVE_DIRECTION, <1.127961,1.176837,0.000000>,
777 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
778 WL_HAZE_HORIZON, 0.482459,
779 WL_BLUE_DENSITY, <0.138669,0.079370,0.226809,0.355229>,
780 WL_HORIZON, <0.517153,0.785614,0.787254,0.499298>,
781 WL_DENSITY_MULTIPLIER, 0.008614,
782 WL_DISTANCE_MULTIPLIER, 5.11371,
783 WL_MAX_ALTITUDE, 1725,
784 WL_SUN_MOON_COLOR, <0.180000,0.230000,0.290000,0.290000>,
785 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
786 WL_SUN_MOON_POSITION, 0.476858,
787 WL_EAST_ANGLE, 0.44213,
788 WL_SUN_GLOW_SIZE, 0.15,
789 WL_SUN_GLOW_FOCUS, 0.14,
790 WL_SCENE_GAMMA, 1.773116,
791 WL_STAR_BRIGHTNESS, 0.3,
792 WL_CLOUD_COLOR, <0.284874,0.453412,0.481085,0.697756>,
793 WL_CLOUD_XY_DENSITY, <0.679722,0.296304,0.077528>,
794 WL_CLOUD_COVERAGE, 0.6683,
795 WL_CLOUD_SCALE, 0.490673,
796 WL_CLOUD_DETAIL_XY_DENSITY, <0.767853,0.485206,0.288665>,
797 WL_CLOUD_SCROLL_X, 0.5,
798 WL_CLOUD_SCROLL_Y, 0.51,
799 WL_CLOUD_SCROLL_Y_LOCK, 0,
800 WL_CLOUD_SCROLL_X_LOCK, 0,
801 WL_DRAW_CLASSIC_CLOUDS, 1,
802 WL_HAZE_DENSITY, 2.711425
803
804 ];
805
806 lsSetWindlightScene(lstWindlight);
807
808 }
809
810 if(message == "Alien I")
811 {
812 lstWindlight = [
813 WL_WATER_COLOR, <255.000000,140.000000,120.000000>,
814 WL_WATER_FOG_DENSITY_EXPONENT, 4.275422,
815 WL_UNDERWATER_FOG_MODIFIER, 0.753856,
816 WL_REFLECTION_WAVELET_SCALE, <9.072795,9.057376,8.325322>,
817 WL_FRESNEL_SCALE, 0.437583,
818 WL_FRESNEL_OFFSET, 0.039738,
819 WL_REFRACT_SCALE_ABOVE, 0.113699,
820 WL_REFRACT_SCALE_BELOW, 0.229843,
821 WL_BLUR_MULTIPLIER, 0.012684,
822 WL_BIG_WAVE_DIRECTION, <1.102530,1.014892,0.000000>,
823 WL_LITTLE_WAVE_DIRECTION, <1.057676,1.151330,0.000000>,
824 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
825 WL_HAZE_HORIZON, 0.104257,
826 WL_BLUE_DENSITY, <0.732192,0.577070,0.895777,0.441964>,
827 WL_HORIZON, <0.688909,0.056618,0.010287,0.913922>,
828 WL_DENSITY_MULTIPLIER, 0.045303,
829 WL_DISTANCE_MULTIPLIER, 3.912289,
830 WL_MAX_ALTITUDE, 1078,
831 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
832 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
833 WL_SUN_MOON_POSITION, 0.261623,
834 WL_EAST_ANGLE, 0.858494,
835 WL_SUN_GLOW_SIZE, 1.025843,
836 WL_SUN_GLOW_FOCUS, 0.184915,
837 WL_SCENE_GAMMA, 1.237678,
838 WL_STAR_BRIGHTNESS, 1.977334,
839 WL_CLOUD_COLOR, <0.915072,0.525595,0.508093,0.894061>,
840 WL_CLOUD_XY_DENSITY, <0.601834,0.601545,0.901130>,
841 WL_CLOUD_COVERAGE, 0.968258,
842 WL_CLOUD_SCALE, 0.659125,
843 WL_CLOUD_DETAIL_XY_DENSITY, <0.887841,0.966825,0.325718>,
844 WL_CLOUD_SCROLL_X, 0.5,
845 WL_CLOUD_SCROLL_Y, 0.51,
846 WL_CLOUD_SCROLL_Y_LOCK, 0,
847 WL_CLOUD_SCROLL_X_LOCK, 0,
848 WL_DRAW_CLASSIC_CLOUDS, 1,
849 WL_HAZE_DENSITY, 1.529225
850
851 ];
852
853 lsSetWindlightScene(lstWindlight);
854
855 }
856
857 if(message == "Alien II")
858
859 {
860 lstWindlight = [
861
862 WL_WATER_COLOR, <20.000000,20.000000,250.000000>,
863 WL_WATER_FOG_DENSITY_EXPONENT, 2.189766,
864 WL_UNDERWATER_FOG_MODIFIER, 0.55,
865 WL_REFLECTION_WAVELET_SCALE, <9.715599,4.410477,2.864550>,
866 WL_FRESNEL_SCALE, 0.117491,
867 WL_FRESNEL_OFFSET, 0.41,
868 WL_REFRACT_SCALE_ABOVE, 0.347905,
869 WL_REFRACT_SCALE_BELOW, 0.691796,
870 WL_BLUR_MULTIPLIER, 0.070381,
871 WL_BIG_WAVE_DIRECTION, <1.066186,1.072411,0.000000>,
872 WL_LITTLE_WAVE_DIRECTION, <1.695046,1.454970,0.000000>,
873 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
874 WL_HAZE_HORIZON, 0.07781,
875 WL_BLUE_DENSITY, <0.895898,0.132409,0.903198,0.217329>,
876 WL_HORIZON, <0.803396,0.375369,0.049990,0.507849>,
877 WL_DENSITY_MULTIPLIER, 0.014775,
878 WL_DISTANCE_MULTIPLIER, 1.773642,
879 WL_MAX_ALTITUDE, 1918,
880 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
881 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
882 WL_SUN_MOON_POSITION, 0.176223,
883 WL_EAST_ANGLE, 0.887109,
884 WL_SUN_GLOW_SIZE, 1.905627,
885 WL_SUN_GLOW_FOCUS, 0.459043,
886 WL_SCENE_GAMMA, 1.2,
887 WL_STAR_BRIGHTNESS, 0.239079,
888 WL_CLOUD_COLOR, <0.829880,0.622903,0.147659,0.231128>,
889 WL_CLOUD_XY_DENSITY, <0.082016,0.924883,0.472532>,
890 WL_CLOUD_COVERAGE, 0.549067,
891 WL_CLOUD_SCALE, 0.466998,
892 WL_CLOUD_DETAIL_XY_DENSITY, <0.447306,0.118532,0.447821>,
893 WL_CLOUD_SCROLL_X, 0.5,
894 WL_CLOUD_SCROLL_Y, 0.51,
895 WL_CLOUD_SCROLL_Y_LOCK, 0,
896 WL_CLOUD_SCROLL_X_LOCK, 0,
897 WL_DRAW_CLASSIC_CLOUDS, 1,
898 WL_HAZE_DENSITY, 3.542748
899
900 ];
901
902 lsSetWindlightScene(lstWindlight);
903
904 }
905
906 if(message == "Pastel")
907 {
908 lstWindlight = [
909
910 WL_WATER_COLOR, <70,70,255>,
911 WL_WATER_FOG_DENSITY_EXPONENT, 1.859902,
912 WL_UNDERWATER_FOG_MODIFIER, 0.05484,
913 WL_REFLECTION_WAVELET_SCALE, <2.332820,1.450380,6.004194>,
914 WL_FRESNEL_SCALE, 0.821228,
915 WL_FRESNEL_OFFSET, 0.974064,
916 WL_REFRACT_SCALE_ABOVE, 0.202604,
917 WL_REFRACT_SCALE_BELOW, 0.445756,
918 WL_BLUR_MULTIPLIER, 0.140242,
919 WL_BIG_WAVE_DIRECTION, <1.169339,1.304617,0.000000>,
920 WL_LITTLE_WAVE_DIRECTION, <1.226967,1.201977,0.000000>,
921 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
922 WL_HAZE_HORIZON, 0.293679,
923 WL_BLUE_DENSITY, <0.818531,0.225085,0.270699,0.814529>,
924 WL_HORIZON, <0.542345,0.630488,0.999437,0.482495>,
925 WL_DENSITY_MULTIPLIER, 0.025901,
926 WL_DISTANCE_MULTIPLIER, 7.389419,
927 WL_MAX_ALTITUDE, 3546,
928 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
929 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
930 WL_SUN_MOON_POSITION, 0.576888,
931 WL_EAST_ANGLE, 0.301374,
932 WL_SUN_GLOW_SIZE, 1.467226,
933 WL_SUN_GLOW_FOCUS, 0.028611,
934 WL_SCENE_GAMMA, 1.161464,
935 WL_STAR_BRIGHTNESS, 0.694566,
936 WL_CLOUD_COLOR, <0.097070,0.037996,0.922019,0.376037>,
937 WL_CLOUD_XY_DENSITY, <0.504887,0.903854,0.333629>,
938 WL_CLOUD_COVERAGE, 0.507194,
939 WL_CLOUD_SCALE, 0.324423,
940 WL_CLOUD_DETAIL_XY_DENSITY, <0.362944,0.505987,0.381911>,
941 WL_CLOUD_SCROLL_X, 0.5,
942 WL_CLOUD_SCROLL_Y, 0.51,
943 WL_CLOUD_SCROLL_Y_LOCK, 0,
944 WL_CLOUD_SCROLL_X_LOCK, 0,
945 WL_DRAW_CLASSIC_CLOUDS, 1,
946 WL_HAZE_DENSITY, 0.375798
947
948 ];
949
950 lsSetWindlightScene(lstWindlight);
951
952 }
953
954 if(message == "Green")
955 {
956 lstWindlight = [
957
958 WL_WATER_COLOR, <143.000000,8.000000,244.000000>,
959 WL_WATER_FOG_DENSITY_EXPONENT, 4.596728,
960 WL_UNDERWATER_FOG_MODIFIER, 0.903586,
961 WL_REFLECTION_WAVELET_SCALE, <6.190049,9.343415,8.273363>,
962 WL_FRESNEL_SCALE, 0.734167,
963 WL_FRESNEL_OFFSET, 0.92322,
964 WL_REFRACT_SCALE_ABOVE, 0.198997,
965 WL_REFRACT_SCALE_BELOW, 0.425253,
966 WL_BLUR_MULTIPLIER, 0.156237,
967 WL_BIG_WAVE_DIRECTION, <1.007799,1.063067,0.000000>,
968 WL_LITTLE_WAVE_DIRECTION, <0.086489,1.027987,0.000000>,
969 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
970 WL_HAZE_HORIZON, 0.017827,
971 WL_BLUE_DENSITY, <0.169330,0.881638,0.542157,0.667066>,
972 WL_HORIZON, <0.135497,0.635862,0.281199,0.813000>,
973 WL_DENSITY_MULTIPLIER, 0.02348,
974 WL_DISTANCE_MULTIPLIER, 1.833835,
975 WL_MAX_ALTITUDE, 1067,
976 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
977 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
978 WL_SUN_MOON_POSITION, 0.492108,
979 WL_EAST_ANGLE, 0.679085,
980 WL_SUN_GLOW_SIZE, 1.707343,
981 WL_SUN_GLOW_FOCUS, 0.157667,
982 WL_SCENE_GAMMA, 0.55,
983 WL_STAR_BRIGHTNESS, 1.90,
984 WL_CLOUD_COLOR, <0.364116,0.509619,0.694290,0.294289>,
985 WL_CLOUD_XY_DENSITY, <0.317294,0.397761,0.014796>,
986 WL_CLOUD_COVERAGE, 0.675815,
987 WL_CLOUD_SCALE, 0.65418,
988 WL_CLOUD_DETAIL_XY_DENSITY, <0.724749,0.791208,0.833693>,
989 WL_CLOUD_SCROLL_X, 0.5,
990 WL_CLOUD_SCROLL_Y, 0.51,
991 WL_CLOUD_SCROLL_Y_LOCK, 0,
992 WL_CLOUD_SCROLL_X_LOCK, 0,
993 WL_DRAW_CLASSIC_CLOUDS, 1,
994 WL_HAZE_DENSITY, 0.154653
995
996 ];
997
998 lsSetWindlightScene(lstWindlight);
999
1000 }
1001
1002 if(message == "Stormy I")
1003 {
1004 lstWindlight = [
1005
1006 WL_WATER_COLOR, <10,20,100>,
1007 WL_WATER_FOG_DENSITY_EXPONENT, 4.949285,
1008 WL_UNDERWATER_FOG_MODIFIER, 0.841768,
1009 WL_REFLECTION_WAVELET_SCALE, <2.556013,7.317167,6.218210>,
1010 WL_FRESNEL_SCALE, 0.498239,
1011 WL_FRESNEL_OFFSET, 0.341853,
1012 WL_REFRACT_SCALE_ABOVE, 0.040897,
1013 WL_REFRACT_SCALE_BELOW, 0.350035,
1014 WL_BLUR_MULTIPLIER, 0.063045,
1015 WL_BIG_WAVE_DIRECTION, <1.516222,1.043062,0.000000>,
1016 WL_LITTLE_WAVE_DIRECTION, <1.479535,1.904096,0.000000>,
1017 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
1018 WL_HAZE_HORIZON, 0.526211,
1019 WL_BLUE_DENSITY, <0.315234,0.927577,0.049778,0.362574>,
1020 WL_HORIZON, <0.253345,0.080743,0.062392,0.760345>,
1021 WL_DENSITY_MULTIPLIER, 0.052131,
1022 WL_DISTANCE_MULTIPLIER, 8.036792,
1023 WL_MAX_ALTITUDE, 110,
1024 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
1025 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
1026 WL_SUN_MOON_POSITION, 0.434187,
1027 WL_EAST_ANGLE, 0.354136,
1028 WL_SUN_GLOW_SIZE, 1.5,
1029 WL_SUN_GLOW_FOCUS, 0.110,
1030 WL_SCENE_GAMMA, 0.443614,
1031 WL_STAR_BRIGHTNESS, 0.01,
1032 WL_CLOUD_COLOR, <0.955256,0.549615,0.807651,0.774151>,
1033 WL_CLOUD_XY_DENSITY, <0.044507,0.831330,0.026146>,
1034 WL_CLOUD_COVERAGE, 0.563004,
1035 WL_CLOUD_SCALE, 0.203409,
1036 WL_CLOUD_DETAIL_XY_DENSITY, <0.668823,0.474131,0.670602>,
1037 WL_CLOUD_SCROLL_X, 1.5,
1038 WL_CLOUD_SCROLL_Y, 1.51,
1039 WL_CLOUD_SCROLL_Y_LOCK, 0,
1040 WL_CLOUD_SCROLL_X_LOCK, 0,
1041 WL_DRAW_CLASSIC_CLOUDS, 1,
1042 WL_HAZE_DENSITY, 3.05443
1043
1044 ];
1045
1046 lsSetWindlightScene(lstWindlight);
1047
1048 }
1049
1050 if(message == "Stormy II")
1051 {
1052 lstWindlight = [
1053
1054 WL_WATER_COLOR, <10.000000,20.000000,30.000000>,
1055 WL_WATER_FOG_DENSITY_EXPONENT, 3.927478,
1056 WL_UNDERWATER_FOG_MODIFIER,0.25,
1057 WL_REFLECTION_WAVELET_SCALE, <8.648945,0.320922,5.837881>,
1058 WL_FRESNEL_SCALE, 0.999,
1059 WL_FRESNEL_OFFSET, 0.283757,
1060 WL_REFRACT_SCALE_ABOVE, 0.1,
1061 WL_REFRACT_SCALE_BELOW, 0.2,
1062 WL_BLUR_MULTIPLIER, 0.145278,
1063 WL_BIG_WAVE_DIRECTION, <0.320949,1.728583,0.000000>,
1064 WL_LITTLE_WAVE_DIRECTION, <1.215789,1.939170,0.000000>,
1065 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
1066 WL_HAZE_HORIZON, 0.598074,
1067 WL_BLUE_DENSITY, <0.640521,0.168140,0.110020,0.799253>,
1068 WL_HORIZON, <0.427968,0.986404,0.132727,0.118051>,
1069 WL_DENSITY_MULTIPLIER, 0.003264,
1070 WL_DISTANCE_MULTIPLIER, 7.389575,
1071 WL_MAX_ALTITUDE, 1350,
1072 WL_SUN_MOON_COLOR, <0.210000,0.230000,0.290000,0.290000>,
1073 WL_AMBIENT, <0.090000,0.150000,0.250000,0.250000>,
1074 WL_SUN_MOON_POSITION, 0.877433,
1075 WL_EAST_ANGLE, 0.618273,
1076 WL_SUN_GLOW_SIZE, 0.78664,
1077 WL_SUN_GLOW_FOCUS, 0.184933,
1078 WL_SCENE_GAMMA, 1.5,
1079 WL_STAR_BRIGHTNESS, 0.01,
1080 WL_CLOUD_COLOR, <0.299142,0.668265,0.691254,0.564617>,
1081 WL_CLOUD_XY_DENSITY, <0.624777,0.693689,0.023239>,
1082 WL_CLOUD_COVERAGE, 0.88998,
1083 WL_CLOUD_SCALE, 0.6050092,
1084 WL_CLOUD_DETAIL_XY_DENSITY, <0.982330,0.496900,0.855927>,
1085 WL_CLOUD_SCROLL_X, 1.7,
1086 WL_CLOUD_SCROLL_Y, -1.8,
1087 WL_CLOUD_SCROLL_Y_LOCK, 0,
1088 WL_CLOUD_SCROLL_X_LOCK, 0,
1089 WL_DRAW_CLASSIC_CLOUDS, 1,
1090 WL_HAZE_DENSITY, 2.713881
1091
1092 ];
1093
1094 lsSetWindlightScene(lstWindlight);
1095
1096 }
1097
1098 //------------------------
1099
1100 if(message == "Random") //unlike other choices the Random option generates a new windlight each time
1101 {
1102
1103 lstWindlight = [
1104 WL_WATER_COLOR, <llRound(llFrand(255)),llRound(llFrand(255)),llRound(llFrand(255))>,
1105 WL_WATER_FOG_DENSITY_EXPONENT, llFrand(5.0),
1106 WL_UNDERWATER_FOG_MODIFIER, llFrand(1.0),
1107 WL_REFLECTION_WAVELET_SCALE, <llFrand(10.0),llFrand(10.0),llFrand(10.0)>,
1108 WL_FRESNEL_SCALE, llFrand(1.0),
1109 WL_FRESNEL_OFFSET, llFrand(1.0),
1110 WL_REFRACT_SCALE_ABOVE, llFrand(1.0),
1111 WL_REFRACT_SCALE_BELOW, llFrand(1.0),
1112 WL_BLUR_MULTIPLIER, llFrand(0.160),
1113 WL_BIG_WAVE_DIRECTION, <llFrand(8.0),llFrand(8.0),0>,
1114 WL_LITTLE_WAVE_DIRECTION, <llFrand(8.0),llFrand(8.0),0>,
1115 WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
1116 WL_HAZE_HORIZON, llFrand(0.65),
1117 WL_BLUE_DENSITY, <llFrand(1.0), llFrand(1.0), llFrand(1.0), llFrand(1.0)>,
1118 WL_HORIZON, <llFrand(1.0),llFrand(1.0),llFrand(1.0),llFrand(1.0)>,
1119 WL_DENSITY_MULTIPLIER, llFrand(0.2),
1120 WL_DISTANCE_MULTIPLIER, llFrand(10.0),
1121 WL_MAX_ALTITUDE, llRound(llFrand(4000)),
1122 WL_SUN_MOON_COLOR, <0.21,0.23,0.29,0.29>,
1123 WL_AMBIENT, <0.09,0.15,0.25,0.25>,
1124 WL_SUN_MOON_POSITION, llFrand(1.000),
1125 WL_EAST_ANGLE, llFrand(1.0),
1126 WL_SUN_GLOW_SIZE, llFrand(1.99),
1127 WL_SUN_GLOW_FOCUS, llFrand(0.50),
1128 WL_SCENE_GAMMA, llFrand(3.0),
1129 WL_STAR_BRIGHTNESS, llFrand(2.0),
1130 WL_CLOUD_COLOR, <llFrand(1.0),llFrand(1.0),llFrand(1.0),llFrand(1.0)>,
1131 WL_CLOUD_XY_DENSITY, <llFrand(1.0),llFrand(1.0),llFrand(1.0)>,
1132 WL_CLOUD_COVERAGE, llFrand(1.0),
1133 WL_CLOUD_SCALE, llFrand(0.65)+0.01,
1134 WL_CLOUD_DETAIL_XY_DENSITY, <llFrand(1.0),llFrand(1.0),llFrand(1.0)>,
1135 WL_CLOUD_SCROLL_X, 0.50,
1136 WL_CLOUD_SCROLL_Y, 0.51,
1137 WL_CLOUD_SCROLL_Y_LOCK, 0,
1138 WL_CLOUD_SCROLL_X_LOCK, 0,
1139 WL_DRAW_CLASSIC_CLOUDS, 1,
1140 WL_HAZE_DENSITY, llFrand(4.0)
1141 ];
1142
1143 lsSetWindlightScene(lstWindlight);
1144
1145 //llSay(0, llDumpList2String(lstWindlight,";")); //used to retrieve windlight settings in local chat
1146 }
1147
1148 //------------------------
1149
1150 if(message == "Default")
1151
1152 {
1153 lsClearWindlightScene();
1154 llSetTimerEvent(0); //Disabling periodic reading in regionwindlight database table (unless timerDelay is set 0)
1155 }
1156
1157 if(message != "Default" && message != "Next" && message != "Previous" && message != strDeactivateNext)
1158
1159 {
1160 llSetTimerEvent(timerDelay);
1161 }
1162
1163 if(message == "Next" && blnActivateNext == TRUE)
1164 {
1165 llDialog(ToucherID, dialogInfo, buttons2, dialogChannel);
1166 }
1167
1168 if(message == "Previous" && blnActivateNext == TRUE)
1169 {
1170 llDialog(ToucherID, dialogInfo, buttons, dialogChannel);
1171 }
1172
1173 if(message != "Next" && message != "Previous" && message != strDeactivateNext)
1174 {
1175 llSetText("Touch To Set Windlight\n(Lightshare Required)\n" + message,<0,1,1>,1.0);
1176 blnActivateNext = FALSE; //reset until next user touch
1177 }
1178
1179
1180 }
1181
1182 timer()
1183
1184 {
1185 // apply last windlight periodically to insure it will show on new arrival
1186 settings = lsGetWindlightScene(settingsToRead);
1187 lsSetWindlightScene (settings);
1188
1189 }
1190 }
1191
1192
1193 //-------------------------------------------------------------------------------------------
1194 //-------------------------------------------------------------------------------------------
1195 //SETTINGS DESCRIPTIONS
1196
1197 // WL_WATER_COLOR: The water colour. It expects a vector containing values between 0 and 255. <0,0,0> is black, <255,255,255> is white. <4,38,64> is the default colour.
1198 // WL_WATER_FOG_DENSITY_EXPONENT: The "cloudiness" of the water. It expects a float value between 0.0 and 10.0. The default is 4.0.
1199 // WL_UNDERWATER_FOG_MODIFIER: When underwater, this controls how foggy the water is. It expects a float between 0.0 and 2.0. The default is 0.25.
1200 // WL_REFLECTION_WAVELET_SCALE: How big do you want the waves on the water to appear? This is a vector containing three values between 0.0 and 10.0. The components of the vector represent water layers 1,2 and 3. The default is <2.0,2.0,2.0>.
1201 // WL_FRESNEL_SCALE: This controls size of the part of the wavelet that reflects light. At 0.0, the water is very reflective. At 1.0, it isn't reflective at all. It's a float between 0.0 and 1.0. The default is 0.40.
1202 // WL_FRESNEL_OFFSET: This controls how much light to reflect. It's a float between 0.0 and 1.0, the default is 0.50.
1203 // WL_REFRACT_SCALE_ABOVE
1204 // WL_REFRACT_SCALE_BELOW
1205 // WL_BLUR_MULTIPLIER: This controls how the wavelets blur in the distance. 0.0 means no blur, and values above 0.040 all seem to represent the highest amount of blur, however the float is between 0.000 and 0.160. The default is 0.040.
1206 // WL_BIG_WAVE_DIRECTION: Which direction do the bigger waves travel in? This parameter expects a float with the first two parameters representing the X and Y value (the Z parameter can be anything). The default is <1.05,-0.42,0>.
1207 // WL_LITTLE_WAVE_DIRECTION: Which direction do the smaller waves travel in? This parameter expects a float with the first two parameters representing the X and Y value (the Z parameter can be anything). The default is <1.11,-1.16,0>.
1208 // WL_NORMAL_MAP_TEXTURE: This is the texture that's used for the surface of the water. It's a key, and the default is 822ded49-9a6c-f61c-cb89-6df54f42cdf4.
1209 // WL_HORIZON: The colour of the horizon. ("Blue Horizon" in the windlight panel). This expects a faux-quaternionwith the X,Y,Z,W parameters representing R,G,B,I respectively, each a float between 0.0 and 1.0. The default is <0.25,0.25,0.32,0.32>.
1210 // WL_HAZE_HORIZON: Controls the amount of haze on the horizon. It's a float between 0.00 and 1.00. The default is 0.19.
1211 // WL_BLUE_DENSITY: Misleadingly, this controls the density of the colour on the horizon (which isn't always blue!) and expects a faux-quaternionof four floats between 0.0 and 1.0. The default is <0.12,0.22,0.38,0.38>.
1212 // WL_HAZE_DENSITY: This controls the density of the haze on the horizon. It's a single float between 0.0 and 4.0. The default is 0.70.
1213 // WL_DENSITY_MULTIPLIER: This controls the density of the entire sky. A setting of 0.0 makes the sky black. It's a float between 0.0 and 0.90. The default is 0.18.
1214 // WL_DISTANCE_MULTIPLIER: Want to bring the horizon right up to your doorstep? This controls how far away the sky is! It's a float between 0.0 and 100.0. The default is 0.8.
1215 // WL_MAX_ALTITUDE: This controls the height of the atmosphere. It's an integer value between 0 and 4000. The default is 1605.
1216 // WL_SUN_MOON_POSITION: The position of the sun/mooon in the sky (Please also see WL_EAST_ANGLE). This can be used to create a day/night cycle. It's a float between 0.000 and 1.000.
1217 // WL_SUN_MOON_COLOR: Pretty self explanatory. Try a pink sun - go on, you know you want to. It's a faux-quaternionexpecting four floats between 0.0 and 1.0. The default is <0.24,0.26,0.30,0.30>.
1218 // WL_AMBIENT: This controls the ambient lighting. To a certain extent it also influences the horizon colour. Again, it's a faux-quaternionexpecting four floats between 0.0 and 1.0. The default is <0.35,0.35,0.35,0.35>.
1219 //WL_EAST_ANGLE: This controls "which way is east".. affecting the horizontal position of the sun (or moon) in the sky. It's a float between 0.00 and 1.00. The default is 0.00.
1220 // WL_SUN_GLOW_FOCUS: This controls how blurry the suns' corona is. It's a float between 0.0 and 0.50, and the default is 0.10.
1221 // WL_SUN_GLOW_SIZE: This controls the size of the sun's corona. It's a float between 1.00 and 1.99, and the default is 1.75.
1222 // WL_SCENE_GAMMA: This controls the scene gamma correction. It's a float between 0.0 and 10.00, and the default is 1.00.
1223 // WL_STAR_BRIGHTNESS: Starry starry night! Or day! You be the boss. This is a float between 0.00 and 2.00. The default is 0.00.
1224 // WL_CLOUD_COLOR: A faux-quaternionrepresenting cloud colour. Four floats between 0.0 and 1.0. The default is <0.41,0.41,0.41,0.41>.
1225 // WL_CLOUD_XY_DENSITY: This is a vector of three components, <X position, Y Position, Cloud Density>. The X and Y positions control the location of the "cloud mass" in the sky, which may be useless if you use WL_CLOUD_SCROLL_X. The Density however is more useful and controls the thickness of the cloud masses. Three floats between 0.0 and 1.0. The default is <1.00,0.53,1.0>.
1226 // WL_CLOUD_COVERAGE: This simply controls how cloudy the sky is. It's a float between 0.0 and 1.0, and the default is 0.27.
1227 // WL_CLOUD_SCALE: This controls the size of the clouds. It's a float between 0.01 and 1.00, and the default is 0.42.
1228 // WL_CLOUD_DETAIL_XY_DENSITY: Much like WL_CLOUD_XY_DENSITY, except it doesn't control the "cloud mass" but instead affects the density of cloud whisps with those masses. Three floats between 0.0 and 1.0, the default is <1.00,0.53,0.12>.
1229 // WL_CLOUD_SCROLL_X: How fast (and in what direction on the X axis) do the clouds move? It's a float between -10.00 and 10.00, and the default is 0.20.
1230 // WL_CLOUD_SCROLL_Y:How fast (and in what direction on the Y axis) do the clouds move? It's a float between -10.00 and 10.00, and the default is 0.01.
1231 // WL_DRAW_CLASSIC_CLOUDS: Currently non functional, but accepts TRUE or FALSE. May be implemented in the future. Default is TRUE.
1232 // WL_CLOUD_SCROLL_X_LOCK: This allows you to lock clouds in place. It's the same as setting WL_CLOUD_SCROLL_X to 0.0. It accepts TRUE or FALSE. Default is FALSE.
1233 // WL_CLOUD_SCROLL_Y_LOCK: This allows you to lock clouds in place. It's the same as setting WL_CLOUD_SCROLL_Y to 0.0. It accepts TRUE or FALSE. Default is FALSE.
1234 //-------------------------------------------------------------------------------------------
1235 //-------------------------------------------------------------------------------------------

Back to the Best Free Tools in Second Life and OpenSim.