glsl-coordinates
GLSL Coordinate Transformations
2D Rotation
// Rotation matrix (counter-clockwise, angle in radians)
mat2 rot2D(float angle) {
float s = sin(angle);
float c = cos(angle);
return mat2(c, -s, s, c);
}
// Usage
vec2 rotated = rot2D(radians(45.0)) * uv;
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.
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.
1shaderbase-recipes
Writing Three.js and React Three Fiber integration recipes for ShaderBase shaders — factory functions, component patterns, placeholders, requirements. Use when creating shader integration code for the ShaderBase registry.
1