DefaultShaders Class

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.

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.