A shader is a program that runs on the GPU, typically consisting of two "entry functions" known as the Vertex Shader and the Fragment Shader, corresponding to two different stages of the rendering pipeline. Below is a simplified illustration of the engine's rendering process (rendering pipeline), focusing on the shader part.
In this chapter, we will cover the following topics:
Section | Content |
---|---|
Shader Object | Overview and basic usage of the Shader object in the engine |
Built-in Shaders | Common built-in shaders in the engine |
Shader Assets | How to create and modify Shader assets in the editor |
ShaderLab | A more convenient way to create Shaders |