Skip to content

Effects

Definition

Namespace: Brine2D.Rendering.SDL.PostProcessing

Classes
BlurEffect Two-pass Gaussian blur post-processing effect. Uses a single shader with uniforms to control blur direction.
GrayscaleEffect Post-processing effect that converts the image to grayscale. Luminance calculation: 0.299*R + 0.587*G + 0.114*B
LetterboxEffect Post-processing effect that scales the fixed-design-resolution main render target into a centered, aspect-preserving rect within the current swapchain, filling the remaining letterbox/pillarbox bars with BarColor.
PassThroughEffect Simple pass-through effect that copies source to target with no modifications. Useful for validating the post-processing pipeline works correctly.