40 float4 trans_accum =
texture(srt.transparent_accum, screen_uv);
41 float trans_weight =
texture(srt.transparent_revealage, screen_uv).r;
42 float trans_reveal = trans_accum.a;
45 frag_out.color.rgb = trans_accum.rgb /
clamp(trans_weight, 1e-4f, 5e4f);
46 frag_out.color.a = 1.0f - trans_reveal;