forge-linear-fog

Official

Add depth fog to SDL GPU scenes.

Authorcode-review-benchmark
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Adds depth-based distance fog to any SDL GPU scene to simulate atmospheric perspective and improve depth cues by fading distant objects toward a fog color.

Core Features & Use Cases

  • Distance-based fog: supports linear, exponential, and exponential-squared modes to fade distant geometry toward a fog color.
  • Shader integration: designed to be appended to an existing fragment shader pipeline and blended after lighting.
  • Practical use cases: enhance realism for outdoor scenes, reduce Z-fighting visibility at far distances, and simulate haze or weather effects.

Quick Start

Add the fog uniform block (fog_color, fog_start, fog_end, fog_density, fog_mode) and implement the depth-based fog calculation in your fragment shader to blend with the lit color after lighting.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: forge-linear-fog
Download link: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/archive/main.zip#forge-linear-fog

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.