menu_bookDocumentation

Shader Graph - s&box Documentation

calendar_today May 5, 2026 schedule ~1 min read person patrickjr verified 50

Official s&box documentation for the Shader Graph - node-based shader creation. Shader Graph allows creating custom shaders without writing HLSL code. Nodes represent operations like texture sampling, math, and lighting calculations. Connections pass data between nodes to define the shader flow. Properties expose parameters that can be set per-material. The graph supports both vertex and fragment shader stages. Custom nodes can be created in C# for reusable shader functionality. Subgraphs allow organizing complex graphs into manageable modules. The system generates optimized HLSL from the graph. Shader Graph integrates with the material system for easy use.

Was this helpful?