Shaders Flashcards
3 Shader Categories
Graphics pipeline Shaders
Compute Shaders
Ray tracing Shaders
What is the Graphics pipeline Shader?
Most common shader.
Performs calculations that determine the color of the pixels on the screen.
Uses shader objects
What are Compute Shaders?
They perform calculations on the GPU outside of the regular graphics pipeline.
What are Ray tracing Shaders?
Perform calculations related to ray tracing
What are shader objects?
An instance of the shader class. A wrapper for shader programs and other information.
What is a Shader Lab?
A unity-specific language for writing Shaders
What is a Shader graph?
A tool for creating Shaders without writing code
What is a Shader Asset?
A file in your project that defines a Shader object.
What are Shaders?
Shaders are part of the Graphics pipeline. An instance of the shader class is called a Shader object.
What is a Shader Object?
Shader objects is a way of working with shader programs; it is a wrapper for shader programs and other information.
It let’s you define multiple shader programs in the same file and tell unity how to use them
What do shader objects contain?
A Shader object contains shader programs, instructions for changing settings on the GPU (collectively called render states), and information that tells unity how to use them.
What do you use shader objects for/with?
You can use shader objects with materials to determine the appearance of your scene
How do you create shader objects? (2 ways)
1) You can write code to create a Shader asset, which is a text file with the (.Shader) extension.
2) You can use a Shader graph to create a Shader graph asset.
An instance of the shader is called?
A Shader object
Inside a Shader object…
A Shader object has a nested structure.
It organizes information into structures called Subshaders and Passes.
It organizes shader programs into shader varients.