Add feature for cursor and range rings

This commit is contained in:
2026-04-05 18:25:42 -07:00
parent 6cf9091c05
commit 337d423639
18 changed files with 779 additions and 284 deletions

11
shaders/ppi_targets.frag Normal file
View File

@@ -0,0 +1,11 @@
#version 330 core
in vec2 vUV; // [-1,1] range — distance from blob centre
out vec4 fragColor;
uniform vec3 uColor;
uniform float uFalloff; // gaussian width: larger = tighter core
void main() {
float d = length(vUV);
if (d > 1.0) discard;
float intensity = exp(-uFalloff * d * d);
fragColor = vec4(uColor * intensity, intensity);
}