forge-edge-detection

Detect and render post-process edges, occlusion marks, and Fresnel silhouettes using G-buffer data and stencil operations in SDL GPU pipelines.

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-edge-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-edge-detection
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-edge-detection
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-edge-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Edge detection, occlusion highlighting, and ghost silhouettes are essential for enhancing depth perception in SDL GPU pipelines. This Skill provides post-process edge detection using Sobel filtering on G-buffer data (depth + normals via MRT), stencil-based X-ray vision using depth_fail_op to mark occluded geometry, and Fresnel-based ghost silhouettes rendered with additive blending.

Core Features & Use Cases

  • Post-process edge outlines from depth/normal discontinuities using Sobel filter on G-buffer data.
  • X-ray occlusion visualization via depth_fail_op stencil marking to reveal occluded geometry.
  • Fresnel ghost silhouettes rendered with additive blending to suggest hidden geometry.
  • Pipeline overview supports multiple passes (shadow, MRT scene, MRT grid, edge composite, X-ray mark, ghost) for cohesive effects.

Quick Start

Integrate this edge-detection workflow into your SDL GPU project and run the post-process passes to render edge outlines, X-ray occlusion marks, and Fresnel ghosts.

Frequently Asked Questions about forge-edge-detection

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

FAQPage Schema
How do I add post-process edge detection to an SDL GPU rendering pipeline?

Post-process edge detection in an SDL GPU pipeline is achieved by applying a Sobel filter to G-buffer data, specifically targeting depth and normal discontinuities via MRTs to generate visual outlines.

How does stencil-based X-ray vision work for rendering occluded geometry?

Stencil-based X-ray vision works by using depth_fail_op stencil operations to mark occluded geometry. This allows the pipeline to reveal hidden objects behind walls during the rendering process.

What is the best way to render Fresnel ghost silhouettes for hidden objects?

Rendering Fresnel ghost silhouettes is best done using additive blending. This technique suggests hidden geometry by compositing silhouettes in the final post-process pass.

Can I use MRT G-buffers for both edge outlines and X-ray occlusion marks?

Yes, you can use MRT G-buffers for both effects. The pipeline supports multiple passes including MRT scene, MRT grid, edge composite, and X-ray mark passes to cohesively generate both outputs.

Do I need multiple rendering passes to composite edge outlines and ghost effects?

Yes, you need multiple rendering passes to composite edge outlines and ghost effects. The pipeline requires distinct shadow, MRT scene, edge composite, X-ray mark, and ghost passes to produce the final cohesive visual result.