🧊Shader
Also known as Shaders, Shader Program, Material Shader
A small program on the graphics card that decides how surfaces look. It sets each pixel's color.
Think of it like
It is like a paint recipe. It tells the computer how each spot should look under the light.
Example
Lucy uses a water shader on a flat plane. It ripples, reflects the sky and gets clearer near the shore.
Why it matters
The same mesh can look like gold or wood. The shader makes the difference.
Definition
Common mistake
Key takeaways
- 1Runs on the graphics card. For every pixel.
- 2Vertex and fragment. Place, then color.
- 3Sets the material. Metal, glass, water.