summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/CASF.glsl
diff options
context:
space:
mode:
authorRye Mutt <rye@lindenlab.com>2024-08-29 16:29:36 -0700
committerGitHub <noreply@github.com>2024-08-29 16:29:36 -0700
commit7e58f089a808b9622f6604407934b36650844a04 (patch)
tree9473316ce4a615499bda44c87edb3744134bace0 /indra/newview/app_settings/shaders/class1/deferred/CASF.glsl
parent17fed3985f56033f6c433436935cfde32ea1e7c6 (diff)
parent9c6988cf2282a02c5dae31dcada147240ead4e64 (diff)
Merge pull request #2466 from RyeMutt/smaa
Introduce SMAA and rework post process chain for better visual quality
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/CASF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/CASF.glsl6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/CASF.glsl b/indra/newview/app_settings/shaders/class1/deferred/CASF.glsl
index 96d08058cf..e80c59b39f 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/CASF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/CASF.glsl
@@ -2067,9 +2067,6 @@ A_STATIC void CasSetup(
AF3 CasLoad(ASU2 p) { return texelFetch(diffuseRect, p, 0).rgb; }
void CasInput(inout AF1 r,inout AF1 g,inout AF1 b)
{
- r = AFromSrgbF1(r);
- g = AFromSrgbF1(g);
- b = AFromSrgbF1(b);
}
//------------------------------------------------------------------------------------------------------------------------------
@@ -2553,6 +2550,7 @@ void main()
vec4 diff = vec4(0.f);
uvec2 point = uvec2(vary_fragcoord * out_screen_res.xy);
CasFilter(diff.r, diff.g, diff.b, point, cas_param_0, cas_param_1, true);
- frag_color = vec4(linear_to_srgb(diff.rgb), 1.0);
+ diff.a = texture(diffuseRect, vary_fragcoord).a;
+ frag_color = diff;
}
#endif