This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shader_type canvas_item; | |
| uniform vec4 color : source_color = vec4(1.); | |
| uniform float thickness : hint_range(0.1, 1.) = .4; | |
| uniform float ratio : hint_range(0., 1.) = .5; | |
| uniform vec4 segment_color : source_color = vec4(1., .886, .412, 1.); | |
| uniform int segment_count : hint_range(1, 12, 1) = 1; | |
| uniform int segment_selected : hint_range(0, 12, 1) = 0; | |
| // "Ring - exact" signed distance function - https://iquilezles.org/articles/distfunctions2d/ |