diff options
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/environment')
3 files changed, 5 insertions, 6 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/environment/waterF.glsl b/linden/indra/newview/app_settings/shaders/class1/environment/waterF.glsl index 1c14381..bd9b30a 100644 --- a/linden/indra/newview/app_settings/shaders/class1/environment/waterF.glsl +++ b/linden/indra/newview/app_settings/shaders/class1/environment/waterF.glsl | |||
@@ -86,7 +86,7 @@ void main() | |||
86 | color.rgb = mix(mix(fogCol.rgb, fb.rgb, fogCol.a), refcol.rgb, df); | 86 | color.rgb = mix(mix(fogCol.rgb, fb.rgb, fogCol.a), refcol.rgb, df); |
87 | color.rgb += spec * specular; | 87 | color.rgb += spec * specular; |
88 | 88 | ||
89 | color.rgb = atmosTransport(color.rgb); | 89 | //color.rgb = applyWaterFog(color);//atmosTransport(color.rgb); |
90 | color.rgb = scaleSoftClip(color.rgb); | 90 | color.rgb = scaleSoftClip(color.rgb); |
91 | color.a = spec * sunAngle2; | 91 | color.a = spec * sunAngle2; |
92 | 92 | ||
diff --git a/linden/indra/newview/app_settings/shaders/class1/environment/waterFogF.glsl b/linden/indra/newview/app_settings/shaders/class1/environment/waterFogF.glsl index 59e44fa..7ee4199 100644 --- a/linden/indra/newview/app_settings/shaders/class1/environment/waterFogF.glsl +++ b/linden/indra/newview/app_settings/shaders/class1/environment/waterFogF.glsl | |||
@@ -8,11 +8,11 @@ | |||
8 | vec4 applyWaterFog(vec4 color) | 8 | vec4 applyWaterFog(vec4 color) |
9 | { | 9 | { |
10 | // GL_EXP2 Fog | 10 | // GL_EXP2 Fog |
11 | float fog = exp(-gl_Fog.density * gl_Fog.density * gl_FogFragCoord * gl_FogFragCoord); | 11 | //float fog = exp(-gl_Fog.density * gl_Fog.density * gl_FogFragCoord * gl_FogFragCoord); |
12 | // GL_EXP Fog | 12 | // GL_EXP Fog |
13 | // float fog = exp(-gl_Fog.density * gl_FogFragCoord); | 13 | // float fog = exp(-gl_Fog.density * gl_FogFragCoord); |
14 | // GL_LINEAR Fog | 14 | // GL_LINEAR Fog |
15 | // float fog = (gl_Fog.end - gl_FogFragCoord) * gl_Fog.scale; | 15 | float fog = (gl_Fog.end - gl_FogFragCoord) * gl_Fog.scale; |
16 | fog = clamp(fog, 0.0, 1.0); | 16 | fog = clamp(fog, 0.0, 1.0); |
17 | color.rgb = mix(gl_Fog.color.rgb, color.rgb, fog); | 17 | color.rgb = mix(gl_Fog.color.rgb, color.rgb, fog); |
18 | return color; | 18 | return color; |
diff --git a/linden/indra/newview/app_settings/shaders/class1/environment/waterV.glsl b/linden/indra/newview/app_settings/shaders/class1/environment/waterV.glsl index d332798..48ac87e 100644 --- a/linden/indra/newview/app_settings/shaders/class1/environment/waterV.glsl +++ b/linden/indra/newview/app_settings/shaders/class1/environment/waterV.glsl | |||
@@ -63,9 +63,8 @@ void main() | |||
63 | //pass wave parameters to pixel shader | 63 | //pass wave parameters to pixel shader |
64 | vec2 bigWave = (v.xy) * vec2(0.04,0.04) + d1 * time * 0.055; | 64 | vec2 bigWave = (v.xy) * vec2(0.04,0.04) + d1 * time * 0.055; |
65 | //get two normal map (detail map) texture coordinates | 65 | //get two normal map (detail map) texture coordinates |
66 | littleWave.xy = (v.xy) * vec2(0.6, 1.2) + d2 * time * 0.05; | 66 | littleWave.xy = (v.xy) * vec2(0.45, 0.9) + d2 * time * 0.13; |
67 | // littleWave.zw = (v.xy) * vec2(0.07, 0.15) - d1 * time * 0.043; | 67 | littleWave.zw = (v.xy) * vec2(0.1, 0.2) + d1 * time * 0.1; |
68 | littleWave.zw = (v.xy) * vec2(0.3, 0.6) + d1 * time * 0.1; | ||
69 | view.w = bigWave.y; | 68 | view.w = bigWave.y; |
70 | refCoord.w = bigWave.x; | 69 | refCoord.w = bigWave.x; |
71 | 70 | ||