forge-planar-reflections

Add planar reflections to SDL3 GPU projects with camera mirroring and Fresnel blending.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-planar-reflections
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-planar-reflections
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-planar-reflections
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-planar-reflections

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Planar reflections enable realistic reflections on flat surfaces in SDL3 GPU scenes, allowing you to simulate water, mirrors, and polished floors without manual artwork.

Core Features & Use Cases

  • Camera mirroring across a reflection plane to render a mirrored scene.
  • Offscreen render pass to capture the reflection texture.
  • Fresnel-blended compositing to blend reflections with the main scene.

Quick Start

Add planar reflections by mirroring the camera across the water plane, rendering the scene to an offscreen texture, and compositing with Fresnel blending.

Frequently Asked Questions about forge-planar-reflections

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

FAQPage Schema
How do I add planar reflections to an SDL3 GPU scene?

To add planar reflections, you mirror the camera across a water plane, render the scene to an offscreen texture, and composite it back with Fresnel blending using a water shader that samples the reflection texture.

What is oblique near-plane clipping used for in water reflections?

Oblique near-plane clipping is required when rendering planar reflections to prevent geometry below the reflection plane from incorrectly projecting through the mirrored camera view, ensuring accurate water reflections.

How does Fresnel blending work for planar water reflections?

Fresnel blending composites the captured offscreen reflection texture with the main scene by adjusting visibility based on the viewing angle, simulating realistic water reflections where grazing angles appear more reflective.

Can I render realistic water and mirrors in SDL GPU without manual artwork?

Yes, planar reflections enable realistic water, mirrors, and polished floors in SDL GPU projects by capturing a mirrored offscreen render pass and blending it onto flat surfaces without requiring manual artwork.

Do I need an offscreen render pass to capture reflection textures in SDL GPU?

Yes, an offscreen render pass is required to capture the mirrored scene into a reflection texture, which is then sampled by the water shader during the final Fresnel-blended composition pass.