Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Custom shaders

Resources for writing programs that run on the GPU to draw GameObjects in a scene.
Read time 1 minuteLast updated 18 days ago

Resources for writing programs that run on the GPU to control the appearance of objects in a scene.

Screenshot from The Heretic.

Page

Description

Writing custom shadersResources for creating your own shaders using Shader Graph, or High-Level Shader Language (HLSL) and ShaderLab.
Optimize shadersOptimizing custom shaders for runtime performance, especially on mobile platforms that have limited GPU performance.
Custom shaders in the Universal Render Pipeline (URP)Resources for writing HLSL and ShaderLab code in URP.
Custom shaders in the Built-In Render PipelineResources for writing HLSL code, ShaderLab code, and Surface Shaders in the Built-In Render Pipeline.
Renderer Shader User Value (RSUV)Customize some visuals per renderer, like color, without breaking SRP batches for best performance.
Troubleshooting shadersSolve common issues with shaders, such as hitches and stalls, or large build sizes.
Shader languages referenceReference for ShaderLab, and High Level Shader Language (HLSL) in Unity.

Further resources