Glsl

GLSL shader programming skill for OpenGL/Vulkan, fragment and vertex shaders.

a5c-ai 57af9dc 2 files · 897 B Updated 1.7k repo stars

File contents

GLSL Skill

GLSL shader programming for OpenGL/Vulkan.

Overview

This skill provides capabilities for writing GLSL shaders.

Capabilities

  • Vertex and fragment shaders
  • Geometry shaders
  • Uniform handling
  • Cross-platform shading

Usage Patterns

#version 450

layout(location = 0) in vec3 position;
layout(location = 0) out vec4 fragColor;

uniform mat4 mvp;

void main() {
    gl_Position = mvp * vec4(position, 1.0);
}

References

a5c-ai/babysitter/tree/main/library/specializations/game-development/skills/glsl commit 57af9dc39d

Frequently asked questions

npx skillmds add a5c-ai/glsl