Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion impeller/compiler/shader_lib/impeller/gradient.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ float IPComputeConicalT(vec2 c0, float r0, vec2 c1, float r1, vec2 p) {
vec2 ab = c1 - c0;
float dr = r1 - r0;
// Set sample rate to a minimum for the case where c0 and c1 are close.
float delta = max(1.0 / length(ab), 100.0);
float delta = 1.0 / max(length(ab), 100.0);
while (w >= 0.0) {
vec2 cw = w * ab + c0;
float rw = w * dr + r0;
Expand Down