glsl-fundamentals

Installation
SKILL.md

GLSL Fundamentals

Coordinate Systems

Screen Coordinates → Normalized UVs → Centered UVs

// gl_FragCoord: pixel coordinates (origin bottom-left)
// x: [0, width], y: [0, height]

// Normalized UVs: [0, 1]
vec2 uv = gl_FragCoord.xy / uResolution.xy;

// Centered UVs: [-0.5, 0.5]
vec2 cuv = uv - 0.5;
Related skills
Installs
1
GitHub Stars
2
First Seen
Apr 14, 2026