glsl-fundamentals
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;
More from devallibus/shaderbase-skills
glsl-sdf
GLSL signed distance fields — 2D/3D primitives, boolean operations, ray marching. Use when creating geometric shapes, text effects, procedural geometry, or ray-marched scenes.
1glsl-color
GLSL color space operations — HSV, cosine palettes, tonemapping, OKLab, sRGB. Use when working with color manipulation, gradients, palettes, or HDR rendering.
1glsl-noise
GLSL noise functions — hash, value, simplex, FBM, Voronoi, Worley. Use when generating procedural textures, terrain, organic patterns, or animated effects.
1glsl-math
GLSL math utilities — remap, smoothstep, easing, smoothmin, complex numbers, anti-aliasing helpers, constants. Use for interpolation, animation curves, or mathematical operations in shaders.
1glsl-coordinates
GLSL space transformations — rotation, polar/spherical, tiling, domain repetition. Use when manipulating coordinate spaces, creating patterns, or transforming geometry.
1shaderbase-manifest
Writing shader.json manifests for the ShaderBase registry — schema reference, capability profiles, uniforms, provenance tracking. Use when creating or editing ShaderBase shader packages.
1