Shaders Flashcards
What’s a shader?
A shader is a set of algorithms that determines the
appearance of a 3D object’s surface. Shaders are
particularly useful for applying complex changes to a
material.
Consumer Patch
visually represents a property of a material, like its position or scale. Usually appears at the end of a graph to specify how the material appears in the effect.
Texture Asset
a producer patch that applies a texture to the material.
Blend
blends two colors or textures together.
Color Space
outputs a texture’s RGB, HSV, and HSL color values. Useful for isolating the color values to change the texture’s appearance.
Composition
outputs two combined functions as a single data stream.
Fallback
automatically outputs a fallback value when you disconnect the main value. For example, a color could be used as a fallback value for an image.
Fragment Stage
processes each fragment in a texture individually instead of processing a texture at the vertices.
Function
used as an identity function. It always returns the same value as its argument
Gradient
creates a grayscale gradient. Can be used with a Mix patch to create a color gradient.
Gradient Step
defines each color you want to use in a color gradient. Use this patch multiple times to add multiple colors.
Render Target Size
outputs the render target size. Useful for building effects using shaders requiring the exact pixel size, like pixel blurring.
Shader Derivative
captures standard derivatives
Texture Sampler
samples a texture at the specified coordinates.
Texture Transform
used with a 2D Transform Pack patch to scale, rotate, pivot and reposition a 2D texture on a 2D or 3D object.