mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 04:15:58 +08:00
4 lines
189 B
Plaintext
4 lines
189 B
Plaintext
float ellipse_shape(vec2 uv, float width, float height){
|
|
float _distance = length((uv * 2.0 - 1.0) / vec2(width, height));
|
|
return clamp((1.0 - _distance) / fwidth(_distance), 0.0, 1.0);
|
|
} |