Skip to content

DefaultShaders Class

Definition

Namespace: Brine2D.Rendering.SDL.Shaders

Built-in default shaders for basic rendering. HLSL source is provided for reference/documentation. The actual shaders are compiled from vertex.hlsl and fragment.hlsl at build time.

C#
public static class DefaultShaders

Inheritance System.Object → DefaultShaders

Fields
SimpleFragmentShaderHLSL Simple fragment shader in HLSL \(reference only\). The actual shader is compiled from Shaders/fragment.hlsl at build time. Outputs the interpolated color.
SimpleVertexShaderHLSL Simple vertex shader in HLSL \(reference only\). The actual shader is compiled from Shaders/vertex.hlsl at build time. Transforms position and passes through color.