Library#

CShade includes a comprehensive library of shared header files (.fxh) that provide the foundation for its shaders. These headers contain various algorithms, mathematical functions, and utility macros used throughout the collection.

Shared Headers#

Location

Purpose

shared/cBlend.fxh

Macros, blend states, and functions for managing color and alpha blending operations.

shared/cBlur.fxh

Collection of blur-related functions and algorithms (Gaussian, Dual Kawase, Box, etc.).

shared/cCamera.fxh

Functions and UI controls for auto-exposure and exposure peaking.

shared/cColor.fxh

Library of color manipulation functions, blend modes, and color space conversions.

shared/cComposite.fxh

Comprehensive color grading and tonemapping pipeline.

shared/cEdge.fxh

Edge detection filters (Sobel, Prewitt, Scharr, Frei-Chen).

shared/cLens.fxh

Lens-related visual effects (film grain, chromatic aberration, vignetting).

shared/cMacros.fxh

General-purpose macros and bitwise operations.

shared/cMath.fxh

Mathematical functions, geometric transforms, and noise generators.

shared/cMotionEstimation.fxh

Real-time motion estimation using Lucas-Kanade optical flow.

shared/cShade.fxh

Core utility library, buffer management, and standard rendering pipeline.