diff options
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsVarsV.glsl')
-rw-r--r-- | linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsVarsV.glsl | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsVarsV.glsl b/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsVarsV.glsl new file mode 100644 index 0000000..b528837 --- /dev/null +++ b/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsVarsV.glsl | |||
@@ -0,0 +1,60 @@ | |||
1 | /** | ||
2 | * @file atmosphericVars.glsl | ||
3 | * | ||
4 | * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc. | ||
5 | * $License$ | ||
6 | */ | ||
7 | |||
8 | varying vec3 vary_PositionEye; | ||
9 | |||
10 | varying vec3 vary_SunlitColor; | ||
11 | varying vec3 vary_AmblitColor; | ||
12 | varying vec3 vary_AdditiveColor; | ||
13 | varying vec3 vary_AtmosAttenuation; | ||
14 | |||
15 | vec3 getPositionEye() | ||
16 | { | ||
17 | return vary_PositionEye; | ||
18 | } | ||
19 | vec3 getSunlitColor() | ||
20 | { | ||
21 | return vary_SunlitColor; | ||
22 | } | ||
23 | vec3 getAmblitColor() | ||
24 | { | ||
25 | return vary_AmblitColor; | ||
26 | } | ||
27 | vec3 getAdditiveColor() | ||
28 | { | ||
29 | return vary_AdditiveColor; | ||
30 | } | ||
31 | vec3 getAtmosAttenuation() | ||
32 | { | ||
33 | return vary_AtmosAttenuation; | ||
34 | } | ||
35 | |||
36 | |||
37 | void setPositionEye(vec3 v) | ||
38 | { | ||
39 | vary_PositionEye = v; | ||
40 | } | ||
41 | |||
42 | void setSunlitColor(vec3 v) | ||
43 | { | ||
44 | vary_SunlitColor = v; | ||
45 | } | ||
46 | |||
47 | void setAmblitColor(vec3 v) | ||
48 | { | ||
49 | vary_AmblitColor = v; | ||
50 | } | ||
51 | |||
52 | void setAdditiveColor(vec3 v) | ||
53 | { | ||
54 | vary_AdditiveColor = v; | ||
55 | } | ||
56 | |||
57 | void setAtmosAttenuation(vec3 v) | ||
58 | { | ||
59 | vary_AtmosAttenuation = v; | ||
60 | } | ||