$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
postprocess_presets.h File Reference

Predefined configurations for the post-processing pipeline. More...

#include "postprocess.h"
Include dependency graph for postprocess_presets.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BANDING_COMMON_BASE
 

Variables

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

Detailed Description

Predefined configurations for the post-processing pipeline.

Macro Definition Documentation

◆ BANDING_COMMON_BASE

#define BANDING_COMMON_BASE

Variable Documentation

◆ PRESET_ANALOG

const PostProcessPreset PRESET_ANALOG
static
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = 0.8F , .smoothness = 0.5F , .roundness = 1.0F }, .grain = {.intensity = 0.02F , .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 = 1.00F }, .chrom_abbr = {.strength = 0.005F }, .white_balance = {.temperature = 6500.0F , .tint = 0.0F }, .tonemapper = {.slope = 1.0F , .toe = 0.0F , .shoulder = 0.0F , .black_clip = 0.0F , .white_clip = 0.0F }, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = 20.0F , .focal_range = 5.0F , .bokeh_scale = 10.0F , .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = 0.75F , .edge_threshold = 0.125F , .edge_threshold_min = 0.063F } ,
.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}}}
@ POSTFX_BANDING
Definition: postprocess.h:99
@ POSTFX_FXAA
Definition: postprocess.h:97
@ POSTFX_EXPOSURE
Definition: postprocess.h:83
@ BANDING_MODE_PERCEPTUAL
Definition: postprocess.h:207

Art style: Perceptual (Analog-like).

◆ PRESET_BLUEPRINT

const PostProcessPreset PRESET_BLUEPRINT
static
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = 0.8F , .smoothness = 0.5F , .roundness = 1.0F }, .grain = {.intensity = 0.02F , .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 = 1.00F }, .chrom_abbr = {.strength = 0.005F }, .white_balance = {.temperature = 6500.0F , .tint = 0.0F }, .tonemapper = {.slope = 1.0F , .toe = 0.0F , .shoulder = 0.0F , .black_clip = 0.0F , .white_clip = 0.0F }, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = 20.0F , .focal_range = 5.0F , .bokeh_scale = 10.0F , .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = 0.75F , .edge_threshold = 0.125F , .edge_threshold_min = 0.063F } ,
.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: postprocess.h:209

Art style: Blueprint / Hologram.

◆ PRESET_BW_CONTRAST

const PostProcessPreset PRESET_BW_CONTRAST
static

High-contrast B&W.

◆ PRESET_CHANNEL_GFX

const PostProcessPreset PRESET_CHANNEL_GFX
static
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = 0.8F , .smoothness = 0.5F , .roundness = 1.0F }, .grain = {.intensity = 0.02F , .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 = 1.00F }, .chrom_abbr = {.strength = 0.005F }, .white_balance = {.temperature = 6500.0F , .tint = 0.0F }, .tonemapper = {.slope = 1.0F , .toe = 0.0F , .shoulder = 0.0F , .black_clip = 0.0F , .white_clip = 0.0F }, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = 20.0F , .focal_range = 5.0F , .bokeh_scale = 10.0F , .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = 0.75F , .edge_threshold = 0.125F , .edge_threshold_min = 0.063F } ,
.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: postprocess.h:208

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

◆ PRESET_CINEMATIC

const PostProcessPreset PRESET_CINEMATIC
static

Rich, high-contrast look.

◆ PRESET_DEFAULT

const PostProcessPreset PRESET_DEFAULT
static

Default balanced settings.

◆ PRESET_MATRIX

const PostProcessPreset PRESET_MATRIX
static

Cool, green-tinted look.

◆ PRESET_NORDIC_NOIR

const PostProcessPreset PRESET_NORDIC_NOIR
static

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
static
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = 0.8F , .smoothness = 0.5F , .roundness = 1.0F }, .grain = {.intensity = 0.02F , .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 = 1.00F }, .chrom_abbr = {.strength = 0.005F }, .white_balance = {.temperature = 6500.0F , .tint = 0.0F }, .tonemapper = {.slope = 1.0F , .toe = 0.0F , .shoulder = 0.0F , .black_clip = 0.0F , .white_clip = 0.0F }, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = 20.0F , .focal_range = 5.0F , .bokeh_scale = 10.0F , .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = 0.75F , .edge_threshold = 0.125F , .edge_threshold_min = 0.063F } ,
.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: postprocess.h:205

Art style: Posterized.

◆ PRESET_RETRO

const PostProcessPreset PRESET_RETRO
static
Initial value:
= {
.active_effects = (unsigned int)POSTFX_EXPOSURE | (unsigned int)POSTFX_BANDING | (unsigned int)POSTFX_FXAA, .vignette = {.intensity = 0.8F , .smoothness = 0.5F , .roundness = 1.0F }, .grain = {.intensity = 0.02F , .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 = 1.00F }, .chrom_abbr = {.strength = 0.005F }, .white_balance = {.temperature = 6500.0F , .tint = 0.0F }, .tonemapper = {.slope = 1.0F , .toe = 0.0F , .shoulder = 0.0F , .black_clip = 0.0F , .white_clip = 0.0F }, .bloom = {.intensity = 0.0F, .threshold = 1.0F, .soft_threshold = 0.5F, .radius = 1.0F}, .dof = {.focal_distance = 20.0F , .focal_range = 5.0F , .bokeh_scale = 10.0F , .anamorphic_ratio = 1.0F}, .fxaa = {.subpix = 0.75F , .edge_threshold = 0.125F , .edge_threshold_min = 0.063F } ,
.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: postprocess.h:206

Art style: Retro Computing (Dithered).

◆ PRESET_SONY_A7SIII

const PostProcessPreset PRESET_SONY_A7SIII
static

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

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

◆ PRESET_SUBTLE

const PostProcessPreset PRESET_SUBTLE
static

Subtle adjustments.

◆ PRESET_VINTAGE

const PostProcessPreset PRESET_VINTAGE
static

Warm, grainy look.