geometry-vertex-color-shader

Document the vertex color RGBA encoding contract for terrain texture blending.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-vertex-color-shader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-vertex-color-shader
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/geometry-vertex-color-shader
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill geometry-vertex-color-shader

SYSTEM DOCUMENTATION & REQUIREMENTS

Documents the vertex color RGBA encoding contract between gen_cliff_glb.rs (CPU mesh generator) and terrain_material.wgsl (GPU shader). Vertex colors encode surface type metadata, NOT visual color. The shader interprets RGBA channels to blend between satellite, cliff rock, and beach sand textures.

Frequently Asked Questions about geometry-vertex-color-shader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use vertex color RGBA encoding for terrain texture blending?

Vertex color RGBA encoding for terrain texture blending stores surface type metadata in mesh vertices rather than visual color, letting the GPU shader interpret each channel to drive blending between satellite, cliff rock, and beach sand textures.

What is the difference between visual color and vertex color encoding in terrain shaders?

Vertex color encoding in terrain shaders transmits surface type metadata rather than visual color, using RGBA channels as a data contract that instructs the GPU how to weight and blend terrain material textures.

How do I set up a CPU mesh generation and GPU shading workflow for coastal terrain?

A coastal terrain workflow requires a CPU mesh generator to encode RGBA vertex colors and a GPU shader to decode them, explicitly linking mesh output to the terrain material's texture blending logic for coastlines.

How do alpha and RGB tint channels interact with ocean overrides in a terrain shader?

Alpha and RGB tint channels interact with ocean overrides by signaling the terrain shader to switch from standard cliff or beach texture blending to specific ocean material handling when the encoded vertex metadata indicates a coastal surface.

Does this vertex color encoding contract work without external dependencies?

Yes, this vertex color encoding contract operates without external dependencies, relying solely on the internal agreement between CPU mesh generation logic and GPU shading workflow to interpret the RGBA surface metadata.