normal-maps

Implement tangent-space normal mapping in SDL GPU shaders.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/RosyGameStudio/forge-gpu --skill normal-maps
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: normal-maps
Source: https://github.com/RosyGameStudio/forge-gpu/tree/main/.claude/skills/normal-maps
Command: npx skills add https://github.com/RosyGameStudio/forge-gpu --skill normal-maps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enhances the visual fidelity of 3D models by adding surface detail like bumps and grooves without increasing polygon count, making them appear more realistic.

Core Features & Use Cases

  • Tangent-Space Normal Mapping: Integrates normal maps into an SDL GPU rendering pipeline.
  • TBN Matrix Construction: Computes the Tangent-Bitangent-Normal matrix in the vertex shader.
  • Normal Map Sampling: Decodes and applies normal map data in the fragment shader for per-texel surface perturbation.
  • Use Case: Apply a brick texture with realistic depth to a wall model in your game or visualization, making it look like it's actually made of bricks.

Quick Start

Use the normal-maps skill to add tangent-space normal mapping to your SDL GPU project.

Frequently Asked Questions about normal-maps

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

FAQPage Schema
How do I implement tangent-space normal mapping in an SDL GPU rendering pipeline?▼

To implement tangent-space normal mapping in SDL GPU, extend vertex layouts with tangent vectors, construct TBN matrices in vertex shaders, and sample normal maps in fragment shaders for per-texel surface perturbation.

Why use normal maps instead of adding more polygons to 3D models?▼

Normal maps add surface detail like bumps and grooves to 3D models without increasing polygon count. This technique enhances visual fidelity by making surfaces appear more realistic while maintaining rendering performance.

Do I need existing Blinn-Phong lighting and model loading to use normal mapping?▼

Yes, normal mapping requires existing Blinn-Phong lighting setup along with glTF or OBJ model loading. These prerequisites provide the foundational lighting model and mesh data needed for tangent-space normal map integration.

How does the TBN matrix construction work in vertex shaders for 3D graphics?▼

TBN matrix construction in vertex shaders computes the Tangent-Bitangent-Normal basis from extended vertex layouts. This matrix transforms tangent-space normal map samples into world space for accurate Blinn-Phong lighting calculations.

Can I apply normal mapping to glTF models loaded with SDL GPU API?▼

Yes, normal mapping supports glTF models rendered with SDL GPU API. The implementation extends vertex layouts with tangent vectors and decodes normal map data in fragment shaders to perturb surface normals per-texel.

What is the best way to decode normal map data in fragment shaders for 3D rendering?▼

Decoding normal map data in fragment shaders involves sampling the normal map texture and transforming the sampled tangent-space vectors using the TBN matrix to apply per-texel surface perturbation for enhanced detail.