Writing shaders in code for s&box — HLSL in a VFX wrapper that combines vertex and pixel stages, with hot reloading on save.
Creating shaders, the recommended code editor setup, and how shaders are compiled.
Passing data from C# into your shaders.
Working with the Material struct and its properties.
Shader render modes.
Customizing how surfaces are lit.
Blending, depth, stencil, and culling state.
Texture sampler configuration.
Drawing many copies of a model in a single draw call.
Deferred rendering commands attached to a camera.
Built-in HLSL helper classes for lighting, motion, screen-space tracing and more.
Default shader inputs and other reference material.