forge-shader-grid - Procedural Anti-Aliased Shader Grid in SDL3 GPU
Render a procedural anti-aliased grid floor in an SDL3 GPU scene using screen-space derivatives and multiple graphics pipelines.
Tags
Updated: 2026-09-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Render anti-aliased procedural grid floor
- Compute grid lines with fwidth
- Apply frequency and distance fade
- Switch pipelines within render pass
Inputs
- SDL3 GPU command buffer
- View-projection matrix uniform
- Grid fragment uniforms struct
- Color and depth render targets
- Grid quad vertex index buffers
Outputs
- Procedural grid drawn to render target
- Updated render pass depth buffer
Requirements
- SDL3 GPU graphics subsystem
- HLSL fragment shader fwidth support
- Linear color space swapchain
