The MIT License Copyright (c) 2019 Inigo Quilez
| 57 | // The MIT License |
| 58 | // Copyright (c) 2019 Inigo Quilez |
| 59 | float sdf_rounded_x(vec2 pt, float size, float radius) { |
| 60 | pt = vec2_abs(pt); |
| 61 | return vec2_magnitude(pt - fminf(pt.x + pt.y, size) * 0.5f) - radius; |
| 62 | } |
| 63 | |
| 64 | /////////////////////////////////////////// |
| 65 |
no test coverage detected