aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl b/linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl
new file mode 100644
index 0000000..19dc2b8
--- /dev/null
+++ b/linden/indra/newview/app_settings/shaders/class1/environment/scatterV.glsl
@@ -0,0 +1,15 @@
1
2
3vec2 getScatterCoord(vec3 viewVec, vec3 lightDir)
4{
5 vec2 scatterCoord = vec2(0,0);
6 return scatterCoord;
7}
8
9void default_scatter(vec3 viewVec, vec3 lightDir)
10{
11 float f = gl_Fog.density * (gl_ModelViewProjectionMatrix * gl_Vertex).z;
12 f = clamp(exp2(-f),0.0,1.0);
13 gl_TexCoord[5].a = f;
14 gl_TexCoord[5].rgb = gl_Fog.color.rgb;
15}