GrayscaleEffect Class

Post-processing effect that converts the image to grayscale. Uses pre-compiled SPIRV/DXIL shaders embedded as resources. Luminance calculation: 0.299*R + 0.587*G + 0.114*B

public class GrayscaleEffect : Brine2D.Rendering.SDL.PostProcessing.ISDL3PostProcessEffect, Brine2D.Rendering.PostProcessing.IPostProcessEffect, System.IDisposable

Inheritance System.Object → GrayscaleEffect

Implements ISDL3PostProcessEffect, IPostProcessEffect, System.IDisposable

Properties
Intensity Grayscale intensity (0.0 = original color, 1.0 = full grayscale). Requires the grayscale fragment shader to declare a uniform buffer at slot 0.