Skip to content

Instantly share code, notes, and snippets.

View Morgscode's full-sized avatar

Luke Morgan Morgscode

View GitHub Profile
@Morgscode
Morgscode / healthbar.glsl
Last active January 1, 2025 04:36
A healthbar animation in GLSL
#define PI 3.1415926535
#define BPM 130.0
varying vec2 v_uv;
uniform float u_time;
uniform vec2 u_resolution;
/// https://iquilezles.org/articles/distfunctions2d/
float sdBox( in vec2 p, in vec2 b )