File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
servers/rendering/renderer_rd/shaders Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ void main() {
611611 if (outline_thickness > 0.0 ) {
612612 float cr = clamp (outline_thickness, 0.0 , (px_range / 2.0 ) - 1.0 ) / px_range;
613613 d = min (d, msdf_sample.a);
614- float a = clamp ((d - 0.5 + cr) * px_size + 0.5 , 0.0 , 1.0 );
614+ float a = clamp ((d - 0.5 + cr) * px_size, 0.0 , 1.0 );
615615 color.a = a * color.a;
616616 } else {
617617 float a = clamp ((d - 0.5 ) * px_size + 0.5 , 0.0 , 1.0 );
Original file line number Diff line number Diff line change @@ -1641,7 +1641,7 @@ void fragment() {)";
16411641 if (msdf_outline_size > 0.0) {
16421642 float cr = clamp(msdf_outline_size, 0.0, (msdf_pixel_range / 2.0) - 1.0) / msdf_pixel_range;
16431643 d = min(d, albedo_tex.a);
1644- albedo_tex.a = clamp((d - 0.5 + cr) * px_size + 0.5 , 0.0, 1.0);
1644+ albedo_tex.a = clamp((d - 0.5 + cr) * px_size, 0.0, 1.0);
16451645 } else {
16461646 albedo_tex.a = clamp((d - 0.5) * px_size + 0.5, 0.0, 1.0);
16471647 }
Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ void main() {
518518 if (outline_thickness > 0 ) {
519519 float cr = clamp (outline_thickness, 0.0 , (px_range / 2.0 ) - 1.0 ) / px_range;
520520 d = min (d, msdf_sample.a);
521- float a = clamp ((d - 0.5 + cr) * px_size + 0.5 , 0.0 , 1.0 );
521+ float a = clamp ((d - 0.5 + cr) * px_size, 0.0 , 1.0 );
522522 color.a = a * color.a;
523523 } else {
524524 float a = clamp ((d - 0.5 ) * px_size + 0.5 , 0.0 , 1.0 );
You can’t perform that action at this time.
0 commit comments