Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
postprocess_presets.c File Reference

Definitions of predefined post-processing pipeline configurations. More...

Include dependency graph for postprocess_presets.c:

Macros

#define BANDING_COMMON_BASE
 

Variables

const PostProcessPreset PRESET_DEFAULT
 Default balanced settings.
 
const PostProcessPreset PRESET_SUBTLE
 Subtle adjustments.
 
const PostProcessPreset PRESET_CINEMATIC
 Rich, high-contrast look.
 
const PostProcessPreset PRESET_VINTAGE
 Warm, grainy look.
 
const PostProcessPreset PRESET_MATRIX
 Cool, green-tinted look.
 
const PostProcessPreset PRESET_BW_CONTRAST
 High-contrast B&W.
 
const PostProcessPreset PRESET_POSTERIZED
 Art style: Posterized.
 
const PostProcessPreset PRESET_RETRO
 Art style: Retro Computing (Dithered).
 
const PostProcessPreset PRESET_ANALOG
 Art style: Perceptual (Analog-like).
 
const PostProcessPreset PRESET_CHANNEL_GFX
 Art style: Channel (VGA/CGA-like).
 
const PostProcessPreset PRESET_BLUEPRINT
 Art style: Blueprint / Hologram.
 
const PostProcessPreset PRESET_NORDIC_NOIR
 Nordic Noir: Foggy neon-lit night with teal-orange split toning.
 
const PostProcessPreset PRESET_SONY_A7SIII
 Sony Alpha 7S III: Professional cinematic look (S-Cinetone/S-Log3 style).
 

Detailed Description

Definitions of predefined post-processing pipeline configurations.

All preset instances live in a single translation unit (single .rodata copy) and are exposed via extern declarations in postprocess_presets.h.

Macro Definition Documentation

◆ BANDING_COMMON_BASE

#define BANDING_COMMON_BASE

Variable Documentation

◆ PRESET_ANALOG

const PostProcessPreset PRESET_ANALOG
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = DEFAULT_VIGNETTE_INTENSITY, .smoothness = DEFAULT_VIGNETTE_SMOOTHNESS, .roundness = DEFAULT_VIGNETTE_ROUNDNESS}, .grain = {.intensity = DEFAULT_GRAIN_INTENSITY, .intensity_shadows = 1.0F, .intensity_midtones = 1.0F, .intensity_highlights = 1.0F, .shadows_max = 0.09F, .highlights_min = 0.5F, .texel_size = 1.0F}, .exposure = {.exposure = DEFAULT_EXPOSURE}, .chrom_abbr = {.strength = DEFAULT_CHROM_ABBR_STRENGTH}, .white_balance = {.temperature = DEFAULT_WB_TEMP, .tint = DEFAULT_WB_TINT}, .tonemapper = {.slope = DEFAULT_FILMIC_SLOPE, .toe = DEFAULT_FILMIC_TOE, .shoulder = DEFAULT_FILMIC_SHOULDER, .black_clip = DEFAULT_FILMIC_BLACK_CLIP, .white_clip = DEFAULT_FILMIC_WHITE_CLIP}, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = DEFAULT_DOF_FOCAL_DISTANCE, .focal_range = DEFAULT_DOF_FOCAL_RANGE, .bokeh_scale = DEFAULT_DOF_BOKEH_SCALE, .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = DEFAULT_FXAA_SUBPIX, .edge_threshold = DEFAULT_FXAA_EDGE_THRESHOLD, .edge_threshold_min = DEFAULT_FXAA_EDGE_THRESHOLD_MIN} ,
.color_grading = {.saturation = 1.0F,
.contrast = 1.0F,
.gamma = 1.0F,
.gain = 1.0F,
.offset = 0.0F},
.banding = {.mode = BANDING_MODE_PERCEPTUAL,
.levels = 12.0F,
.dither_strength = 0.0F,
.perceptual_gamma = 2.2F,
.channel_levels = {12.0F, 12.0F, 12.0F}}}
#define DEFAULT_DOF_BOKEH_SCALE
Definition postprocess_internal.h:38
#define DEFAULT_DOF_FOCAL_RANGE
Definition postprocess_internal.h:37
#define DEFAULT_DOF_FOCAL_DISTANCE
Definition postprocess_internal.h:36
@ POSTFX_BANDING
Definition pp_params.h:200
@ POSTFX_FXAA
Definition pp_params.h:198
@ POSTFX_EXPOSURE
Definition pp_params.h:184
#define DEFAULT_FILMIC_SHOULDER
Definition pp_params.h:53
@ BANDING_MODE_PERCEPTUAL
Definition pp_params.h:149
#define DEFAULT_VIGNETTE_SMOOTHNESS
Definition pp_params.h:21
#define DEFAULT_FILMIC_SLOPE
Definition pp_params.h:51
#define DEFAULT_FILMIC_BLACK_CLIP
Definition pp_params.h:54
#define DEFAULT_FXAA_EDGE_THRESHOLD
Definition pp_params.h:32
#define DEFAULT_VIGNETTE_INTENSITY
Definition pp_params.h:20
#define DEFAULT_CHROM_ABBR_STRENGTH
Definition pp_params.h:28
#define DEFAULT_GRAIN_INTENSITY
Definition pp_params.h:23
#define DEFAULT_VIGNETTE_ROUNDNESS
Definition pp_params.h:22
#define DEFAULT_FXAA_EDGE_THRESHOLD_MIN
Definition pp_params.h:33
#define DEFAULT_EXPOSURE
Definition pp_params.h:27
#define DEFAULT_FXAA_SUBPIX
Definition pp_params.h:31
#define DEFAULT_WB_TINT
Definition pp_params.h:48
#define DEFAULT_FILMIC_WHITE_CLIP
Definition pp_params.h:55
#define DEFAULT_WB_TEMP
Definition pp_params.h:47
#define DEFAULT_FILMIC_TOE
Definition pp_params.h:52

Art style: Perceptual (Analog-like).

◆ PRESET_BLUEPRINT

const PostProcessPreset PRESET_BLUEPRINT
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = DEFAULT_VIGNETTE_INTENSITY, .smoothness = DEFAULT_VIGNETTE_SMOOTHNESS, .roundness = DEFAULT_VIGNETTE_ROUNDNESS}, .grain = {.intensity = DEFAULT_GRAIN_INTENSITY, .intensity_shadows = 1.0F, .intensity_midtones = 1.0F, .intensity_highlights = 1.0F, .shadows_max = 0.09F, .highlights_min = 0.5F, .texel_size = 1.0F}, .exposure = {.exposure = DEFAULT_EXPOSURE}, .chrom_abbr = {.strength = DEFAULT_CHROM_ABBR_STRENGTH}, .white_balance = {.temperature = DEFAULT_WB_TEMP, .tint = DEFAULT_WB_TINT}, .tonemapper = {.slope = DEFAULT_FILMIC_SLOPE, .toe = DEFAULT_FILMIC_TOE, .shoulder = DEFAULT_FILMIC_SHOULDER, .black_clip = DEFAULT_FILMIC_BLACK_CLIP, .white_clip = DEFAULT_FILMIC_WHITE_CLIP}, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = DEFAULT_DOF_FOCAL_DISTANCE, .focal_range = DEFAULT_DOF_FOCAL_RANGE, .bokeh_scale = DEFAULT_DOF_BOKEH_SCALE, .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = DEFAULT_FXAA_SUBPIX, .edge_threshold = DEFAULT_FXAA_EDGE_THRESHOLD, .edge_threshold_min = DEFAULT_FXAA_EDGE_THRESHOLD_MIN} ,
.color_grading = {.saturation = 1.0F,
.contrast = 1.0F,
.gamma = 1.0F,
.gain = 1.0F,
.offset = 0.0F},
.banding = {.mode = BANDING_MODE_LUMINANCE,
.levels = 6.0F,
.dither_strength = 0.0F,
.perceptual_gamma = 1.0F,
.channel_levels = {0.1F, 0.4F, 0.9F}}}
@ BANDING_MODE_LUMINANCE
Definition pp_params.h:151

Art style: Blueprint / Hologram.

◆ PRESET_BW_CONTRAST

const PostProcessPreset PRESET_BW_CONTRAST

High-contrast B&W.

◆ PRESET_CHANNEL_GFX

const PostProcessPreset PRESET_CHANNEL_GFX
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = DEFAULT_VIGNETTE_INTENSITY, .smoothness = DEFAULT_VIGNETTE_SMOOTHNESS, .roundness = DEFAULT_VIGNETTE_ROUNDNESS}, .grain = {.intensity = DEFAULT_GRAIN_INTENSITY, .intensity_shadows = 1.0F, .intensity_midtones = 1.0F, .intensity_highlights = 1.0F, .shadows_max = 0.09F, .highlights_min = 0.5F, .texel_size = 1.0F}, .exposure = {.exposure = DEFAULT_EXPOSURE}, .chrom_abbr = {.strength = DEFAULT_CHROM_ABBR_STRENGTH}, .white_balance = {.temperature = DEFAULT_WB_TEMP, .tint = DEFAULT_WB_TINT}, .tonemapper = {.slope = DEFAULT_FILMIC_SLOPE, .toe = DEFAULT_FILMIC_TOE, .shoulder = DEFAULT_FILMIC_SHOULDER, .black_clip = DEFAULT_FILMIC_BLACK_CLIP, .white_clip = DEFAULT_FILMIC_WHITE_CLIP}, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = DEFAULT_DOF_FOCAL_DISTANCE, .focal_range = DEFAULT_DOF_FOCAL_RANGE, .bokeh_scale = DEFAULT_DOF_BOKEH_SCALE, .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = DEFAULT_FXAA_SUBPIX, .edge_threshold = DEFAULT_FXAA_EDGE_THRESHOLD, .edge_threshold_min = DEFAULT_FXAA_EDGE_THRESHOLD_MIN} ,
.color_grading = {.saturation = 1.0F,
.contrast = 1.0F,
.gamma = 1.0F,
.gain = 1.0F,
.offset = 0.0F},
.banding = {.mode = BANDING_MODE_CHANNEL,
.levels = 256.0F,
.dither_strength = 0.0F,
.perceptual_gamma = 1.0F,
.channel_levels = {8.0F, 8.0F, 4.0F}}}
@ BANDING_MODE_CHANNEL
Definition pp_params.h:150

Art style: Channel (VGA/CGA-like).

◆ PRESET_CINEMATIC

const PostProcessPreset PRESET_CINEMATIC

Rich, high-contrast look.

◆ PRESET_DEFAULT

const PostProcessPreset PRESET_DEFAULT

Default balanced settings.

◆ PRESET_MATRIX

const PostProcessPreset PRESET_MATRIX

Cool, green-tinted look.

◆ PRESET_NORDIC_NOIR

const PostProcessPreset PRESET_NORDIC_NOIR

Nordic Noir: Foggy neon-lit night with teal-orange split toning.

Inspired by Nordic noir photography — cool atmospheric fog, warm neon highlights, visible film grain, lifted shadows with teal cast, and filmic tone mapping with compressed dynamic range.

◆ PRESET_POSTERIZED

const PostProcessPreset PRESET_POSTERIZED
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = DEFAULT_VIGNETTE_INTENSITY, .smoothness = DEFAULT_VIGNETTE_SMOOTHNESS, .roundness = DEFAULT_VIGNETTE_ROUNDNESS}, .grain = {.intensity = DEFAULT_GRAIN_INTENSITY, .intensity_shadows = 1.0F, .intensity_midtones = 1.0F, .intensity_highlights = 1.0F, .shadows_max = 0.09F, .highlights_min = 0.5F, .texel_size = 1.0F}, .exposure = {.exposure = DEFAULT_EXPOSURE}, .chrom_abbr = {.strength = DEFAULT_CHROM_ABBR_STRENGTH}, .white_balance = {.temperature = DEFAULT_WB_TEMP, .tint = DEFAULT_WB_TINT}, .tonemapper = {.slope = DEFAULT_FILMIC_SLOPE, .toe = DEFAULT_FILMIC_TOE, .shoulder = DEFAULT_FILMIC_SHOULDER, .black_clip = DEFAULT_FILMIC_BLACK_CLIP, .white_clip = DEFAULT_FILMIC_WHITE_CLIP}, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = DEFAULT_DOF_FOCAL_DISTANCE, .focal_range = DEFAULT_DOF_FOCAL_RANGE, .bokeh_scale = DEFAULT_DOF_BOKEH_SCALE, .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = DEFAULT_FXAA_SUBPIX, .edge_threshold = DEFAULT_FXAA_EDGE_THRESHOLD, .edge_threshold_min = DEFAULT_FXAA_EDGE_THRESHOLD_MIN} ,
.color_grading = {.saturation = 1.5F,
.contrast = 1.5F,
.gamma = 1.0F,
.gain = 1.0F,
.offset = 0.0F},
.banding = {.mode = BANDING_MODE_LINEAR,
.levels = 4.0F,
.dither_strength = 0.0F,
.perceptual_gamma = 1.0F,
.channel_levels = {4.0F, 4.0F, 4.0F}}}
@ BANDING_MODE_LINEAR
Definition pp_params.h:147

Art style: Posterized.

◆ PRESET_RETRO

const PostProcessPreset PRESET_RETRO
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = DEFAULT_VIGNETTE_INTENSITY, .smoothness = DEFAULT_VIGNETTE_SMOOTHNESS, .roundness = DEFAULT_VIGNETTE_ROUNDNESS}, .grain = {.intensity = DEFAULT_GRAIN_INTENSITY, .intensity_shadows = 1.0F, .intensity_midtones = 1.0F, .intensity_highlights = 1.0F, .shadows_max = 0.09F, .highlights_min = 0.5F, .texel_size = 1.0F}, .exposure = {.exposure = DEFAULT_EXPOSURE}, .chrom_abbr = {.strength = DEFAULT_CHROM_ABBR_STRENGTH}, .white_balance = {.temperature = DEFAULT_WB_TEMP, .tint = DEFAULT_WB_TINT}, .tonemapper = {.slope = DEFAULT_FILMIC_SLOPE, .toe = DEFAULT_FILMIC_TOE, .shoulder = DEFAULT_FILMIC_SHOULDER, .black_clip = DEFAULT_FILMIC_BLACK_CLIP, .white_clip = DEFAULT_FILMIC_WHITE_CLIP}, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = DEFAULT_DOF_FOCAL_DISTANCE, .focal_range = DEFAULT_DOF_FOCAL_RANGE, .bokeh_scale = DEFAULT_DOF_BOKEH_SCALE, .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = DEFAULT_FXAA_SUBPIX, .edge_threshold = DEFAULT_FXAA_EDGE_THRESHOLD, .edge_threshold_min = DEFAULT_FXAA_EDGE_THRESHOLD_MIN} ,
.color_grading = {.saturation = 0.5F,
.contrast = 1.3F,
.gamma = 1.1F,
.gain = 1.0F,
.offset = 0.0F},
.banding = {.mode = BANDING_MODE_DITHERED,
.levels = 8.0F,
.dither_strength = 1.5F,
.perceptual_gamma = 1.0F,
.channel_levels = {8.0F, 8.0F, 8.0F}}}
@ BANDING_MODE_DITHERED
Definition pp_params.h:148

Art style: Retro Computing (Dithered).

◆ PRESET_SONY_A7SIII

const PostProcessPreset PRESET_SONY_A7SIII

Sony Alpha 7S III: Professional cinematic look (S-Cinetone/S-Log3 style).

Sony Alpha 7S III: Professional cinematic look.

Characteristics: Natural mid-tones, soft highlight roll-off, clean and fine organic grain, and breathable shadows.

◆ PRESET_SUBTLE

const PostProcessPreset PRESET_SUBTLE

Subtle adjustments.

◆ PRESET_VINTAGE

const PostProcessPreset PRESET_VINTAGE

Warm, grainy look.