Skip to content
sickn33 avatar

Shader Programming Glsl

Practical GLSL shader guide covering vertex and fragment stages, uniforms, varyings, swizzling, and raymarching examples.

CCM score
56 of 100
skills.sh installs
126
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the vertex and fragment pipeline, uniforms and varyings, swizzling and vector math, and a raymarched SDF sphere example
  • Includes WebGL 1 and GLSL ES 3.00 syntax notes, with mix(), step(), and smoothstep() recommended over if branches
  • Enforces a best-practices list that advises pre-computing constants on the CPU and avoiding heavy branching inside loops
  • Designed for WebGL, Three.js, and game engine work on custom effects, post-processing, and GPU texture generation

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill shader-programming-glsl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Shader Programming GLSL

Overview

A comprehensive guide to writing GPU shaders using GLSL (OpenGL Shading Language). Learn syntax, uniforms, varying variables, and key mathematical concepts like swizzling and vector operations for visual effects.

When to Use This Skill

  • Use when creating custom visual effects in WebGL, Three.js, or game engines.
  • Use when optimizing graphics rendering performance.
  • Use when implementing post-processing effects (blur, bloom, color correction).
  • Use when procedurally generating textures or geometry on the GPU.

Step-by-Step Guide

1. Structure: Vertex vs. Fragment

The basic syntax below targets GLSL ES 1.00/WebGL 1. Host engines may inject matrices/attributes; raw WebGL must bind them explicitly. GLSL ES 3.00 uses in/out and a declared fragment output instead of attribute/varying/gl_FragColor. Compile the vertex and fragment shaders separately, link them into a program, and inspect compile/link logs.

Understand the pipeline:

  • Vertex Shader: Transforms 3D coordinates to 2D screen space (gl_Position).
  • Fragment Shader: Colors individual pixels (gl_FragColor).

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Frontend & UI Code, Game Development, 3D, CAD & Modeling
First seen
Jun 3, 2026

Questions

What does the shader-programming-glsl skill help me do?

The shader-programming-glsl skill is an expert guide for writing efficient GLSL vertex and fragment shaders for web and game engines. It covers syntax, uniforms, varying variables, swizzling, raymarching with signed distance functions, and common effects like post-processing.

Who should use the shader-programming-glsl skill?

It is for developers creating custom visual effects in WebGL, Three.js or game engines. It also suits anyone optimizing graphics rendering performance or procedurally generating textures or geometry on the GPU.

How do I install the shader-programming-glsl skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill shader-programming-glsl -y in a project. Once installed, the agent gets the GLSL guidance from the SKILL.md file for shader work.

Does the shader-programming-glsl skill need a host application or runtime?

The examples target GLSL ES 1.00 and WebGL 1, and the raymarching example needs a host wrapper that supplies iResolution for raw WebGL. Host engines may inject matrices and attributes, so raw WebGL setups must bind them explicitly.

More from sickn33/agentic-awesome-skills

All 682

Similar to Shader Programming Glsl

More Frontend & UI Code