Skip to content
BENIBIX Learn

Shader

Design🧊 3D & Immersive3D Rendering

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

A shader is a small program that runs on the graphics card and decides how surfaces look. A vertex shader places each corner of a model on the screen. A fragment shader picks the color of each pixel, from texture, light and angle. Shaders make things look like metal, glass, water or cartoon ink. In design apps they are often built by linking boxes, called nodes, instead of writing code.
A shader decides the color of each pixel the rays or triangles reach.

Common mistake

Piling heavy effects on every object. Each one runs for each pixel in each frame, so the scene slows down.

Key takeaways

  1. 1
    Runs on the graphics card. For every pixel.
  2. 2
    Vertex and fragment. Place, then color.
  3. 3
    Sets the material. Metal, glass, water.

Compare