bbeierle12 avatar

Shader Fundamentals

This is your reference card for GLSL shader programming. It covers the vertex to fragment pipeline, data types with swizzling, the three variable qualifiers (uniforms from CPU, attributes per vertex, varyings interpolated between shaders), and the coordinate space transforms you'll chain together. The built-in functions section is practical, the UV patterns are copy-paste ready, and the debugging techniques (like visualizing normals as RGB) actually work. If you're writing custom materials in Three.js or debugging why your shader is black, this has the syntax and patterns you need without the theory lecture. Precision qualifiers, matrix transforms, and common gotchas are all here.

skills.sh installs
171
GitHub stars
9
last updated
Aug 21, 2026

Install

$ npx -y skills add bbeierle12/skill-mcp-claude --skill shader-fundamentals --agent claude-code

Installs into .claude/skills of the current project.

Files

Shader Fundamentals

GLSL (OpenGL Shading Language) runs on the GPU. Vertex shaders transform geometry; fragment shaders color pixels.

Quick Start

// Vertex Shader
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;

attribute vec3 position;
attribute vec2 uv;

varying vec2 vUv;

void main() {
  vUv = uv;
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}

// Fragment Shader
uniform float uTime;
varying vec2 vUv;

void main() {
  vec3 color = vec3(vUv, sin(uTime) * 0.5 + 0.5);
  gl_FragColor = vec4(color, 1.0);
}

Graphics Pipeline

Vertex Data → [Vertex Shader] → Primitives → Rasterization → [Fragment Shader] → Pixels
     ↑              ↑                                              ↑
 attributes    transforms                                    per-pixel color
StageRuns PerPurpose
Vertex ShaderVertexTransform positions, pass data to fragment
Fragment ShaderPixelCalculate final color

Data Types

Scalars

bool b = true;
int i = 42;
float f = 3.14;

Vectors

Sponsors

Details

Repository
github.com/bbeierle12/skill-mcp-claude
Categories
DevOps & CI/CD, Documentation, AI & Agent Building, Debugging, Automation & Workflows, Sales & Marketing, Game Development
First seen
Jun 3, 2026

More from bbeierle12/skill-mcp-claude

All 8
1rysweet avatarcontext-managementrysweet/amplihackProactive context window management via token monitoring, intelligent extraction, and selective rehydration. Features predictive budget monitoring, context heal170skills.sh installs
2hoodini avatarlangchainhoodini/ai-agents-skillsBuild LLM applications with LangChain and LangGraph. Use when creating RAG pipelines, agent workflows, chains, or complex LLM orchestration. Triggers on LangCha169skills.sh installs
3pedronauck avatarui-ux-pro-maxpedronauck/skillsUI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind,168skills.sh installs
4oaustegard avatardeveloping-preactoaustegard/claude-skillsSpecialized Preact development skill for standards-based web applications with native-first architecture and minimal dependency footprint. Use when building Pre167skills.sh installs
5cinience avataralicloud-media-livecinience/alicloud-skillsManage Alibaba Cloud ApsaraVideo Live resources and workflows via OpenAPI/SDK. Use for live domain configuration, stream ingest and playback setup, recording/tr166skills.sh installs
6davila7 avatarzapier-make-patternsdavila7/claude-code-templatesNo-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. Bu166skills.sh installs