mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 02:35:22 +08:00
Merge pull request #950 from kolibril13/patch-1
Changed -1 to -1.0 for broader GPU suppot.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user