|
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
|
Parameter structs and defaults for uber-shader post-processing effects. More...
#include <cglm/types.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | ColorGradingParams |
| Unreal-style color grading parameters. More... | |
| struct | VignetteParams |
| Controls for the screen-edge darkening effect. More... | |
| struct | GrainParams |
| Fine-grained controls for film noise. More... | |
| struct | ExposureParams |
| Manual exposure tuning. More... | |
| struct | ChromAbberationParams |
| Focal-length distortion simulation. More... | |
| struct | WhiteBalanceParams |
| Temperature and tint correction. More... | |
| struct | TonemapParams |
| ACES-like filmic tonemapping curve parameters. More... | |
| struct | FXAAParams |
| Parameters for Fast Approximate Anti-Aliasing. More... | |
| struct | BandingParams |
| Controls for color banding/quantization. More... | |
| struct | FogParams |
| Depth-based atmospheric fog parameters. More... | |
Enumerations | |
| enum | BandingMode { BANDING_MODE_LINEAR = 0 , BANDING_MODE_DITHERED = 1 , BANDING_MODE_PERCEPTUAL = 2 , BANDING_MODE_CHANNEL = 3 , BANDING_MODE_LUMINANCE = 4 } |
| Styles of color quantization. More... | |
| enum | PostProcessEffect { POSTFX_VIGNETTE = (1U << 0U) , POSTFX_GRAIN = (1U << 1U) , POSTFX_EXPOSURE = (1U << 2U) , POSTFX_CHROM_ABBR = (1U << 3U) , POSTFX_BLOOM = (1U << 4U) , POSTFX_COLOR_GRADING , POSTFX_DOF = (1U << 6U) , POSTFX_DOF_DEBUG = (1U << 7U) , POSTFX_AUTO_EXPOSURE , POSTFX_EXPOSURE_DEBUG , POSTFX_MOTION_BLUR = (1U << 10U) , POSTFX_MOTION_BLUR_DEBUG , POSTFX_FXAA = (1U << 12U) , POSTFX_FXAA_DEBUG = (1U << 13U) , POSTFX_BANDING = (1U << 14U) , POSTFX_VECTOR_FIELD_DEBUG , POSTFX_STENCIL_DEBUG = (1U << 16U) , POSTFX_BLOOM_DEBUG = (1U << 17U) , POSTFX_FOG = (1U << 18U) , POSTFX_FOG_DEBUG = (1U << 19U) , POSTFX_LUT3D = (1U << 20U) , POSTFX_LUT_VIZ = (1U << 21U) } |
| Bitmask flags for enabling/disabling individual effects. More... | |
Parameter structs and defaults for uber-shader post-processing effects.
Contains configuration structs for effects that run inside the combined uber-shader pass (Vignette, Grain, Exposure, ChromAbbr, WhiteBalance, ColorGrading, Tonemap, FXAA, Banding, Fog). Effects with their own multi-pass pipeline (Bloom, DoF, AutoExposure, MotionBlur, LUT3D) define their params in their respective fx_*.h headers.
| #define DEFAULT_ACTIVE_EFFECTS |
Default mask of active effects.
| #define DEFAULT_BANDING_LEVELS 256.0F |
8-bit simulation.
| #define DEFAULT_CHROM_ABBR_STRENGTH 0.005F |
| #define DEFAULT_EXPOSURE 1.00F |
| #define DEFAULT_FILMIC_BLACK_CLIP 0.0F |
| #define DEFAULT_FILMIC_SHOULDER 0.0F |
| #define DEFAULT_FILMIC_SLOPE 1.0F |
| #define DEFAULT_FILMIC_TOE 0.0F |
| #define DEFAULT_FILMIC_WHITE_CLIP 0.0F |
| #define DEFAULT_FOG_COLOR_B 0.7F |
| #define DEFAULT_FOG_COLOR_G 0.6F |
| #define DEFAULT_FOG_COLOR_R 0.5F |
| #define DEFAULT_FOG_DENSITY 0.0F |
| #define DEFAULT_FOG_HEIGHT_FALLOFF 0.1F |
| #define DEFAULT_FOG_START 10.0F |
| #define DEFAULT_FXAA_EDGE_THRESHOLD 0.125F |
| #define DEFAULT_FXAA_EDGE_THRESHOLD_MIN 0.063F |
| #define DEFAULT_FXAA_SUBPIX 0.75F |
| #define DEFAULT_GRAIN_HIGHLIGHTS_MIN 0.5F |
| #define DEFAULT_GRAIN_INTENSITY 0.02F |
Default film grain strength.
| #define DEFAULT_GRAIN_SHADOWS_MAX 0.09F |
| #define DEFAULT_GRAIN_TEXEL_SIZE 1.0F |
| #define DEFAULT_VIGNETTE_INTENSITY 0.8F |
Default vignette strength.
| #define DEFAULT_VIGNETTE_ROUNDNESS 1.0F |
Default vignette shape.
| #define DEFAULT_VIGNETTE_SMOOTHNESS 0.5F |
Default vignette falloff.
| #define DEFAULT_WB_TEMP 6500.0F |
| #define DEFAULT_WB_TINT 0.0F |
| enum BandingMode |
| enum PostProcessEffect |
Bitmask flags for enabling/disabling individual effects.