Merge pull request #950 from kolibril13/patch-1

Changed -1 to -1.0 for broader GPU suppot.
This commit is contained in:
Devin Neal
2020-04-15 22:17:07 -07:00
committed by GitHub

View File

@ -38,7 +38,7 @@ bool is_inside_curve(){
float sdf(){
if(is_inside_curve()) return -1;
if(is_inside_curve()) return -1.0;
return min_dist_to_curve(uv_coords, uv_b2, bezier_degree, false);
}
@ -49,4 +49,4 @@ void main() {
if (fill_type == FILL_ALL) return;
frag_color.a *= smoothstep(1, 0, sdf() / uv_anti_alias_width);
// frag_color.a += 0.2;
}
}