Receptors: cheaper alpha mix shadow

This commit is contained in:
Luke Hubmayer-Werner 2021-01-06 22:34:40 +10:30
parent 4a363d9cfa
commit 1dfb70de8f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void fragment() {
lds_alpha.yw = dot_alpha(UV);
lds_alpha.xz = clamp(line_alpha(dist), vec2(0.0), vec2(1.0-lds_alpha.y));
lds_alpha.z = pow(max(lds_alpha.z, lds_alpha.w), 1.0-min(lds_alpha.z, lds_alpha.w));
lds_alpha.z += lds_alpha.w*(1.0-lds_alpha.z);
lds_alpha = clamp(lds_alpha, 0.0, 1.0);
lds_alpha.z *= 1.0-min(dot(lds_alpha.xy, vec2(1.0)), 1.0);
lds_alpha.z = max(pow(lds_alpha.z, 2.0)-0.125, 0.0);