# Shader

> A small program on the graphics card that decides how surfaces look. It sets each pixel's color.

**Field:** Design  
**Category:** 3D & Immersive  
**Also known as:** Shaders, Shader Program, Material Shader

## Think of it like

It is like a paint recipe. It tells the computer how each spot should look under the light.

## 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.

## 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.

## Common mistake

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

## Three principles

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

## Related terms

- [3D Rendering](https://learn.benibix.com/term/design/3d-rendering)
- [Texture Map](https://learn.benibix.com/term/design/texture-map)
- [WebGL](https://learn.benibix.com/term/design/webgl)
- [Vertex](https://learn.benibix.com/term/design/vertex)
- [Unreal Engine](https://learn.benibix.com/term/development/unreal-engine)
- [3D Material](https://learn.benibix.com/term/design/3d-material)
- [Physically Based Rendering (PBR)](https://learn.benibix.com/term/design/physically-based-rendering)

## Told apart from

- [Material vs Shader](https://learn.benibix.com/compare/material-vs-shader): People think a material and a shader are the same thing, and they are not. The shader is the small program that works out the color of each pixel. The material is the set of values and images fed into it. Many materials can share one shader and still look nothing alike.

![Two panels. On the left, rasterization: a triangle is projected flat onto a grid of pixels, and the pixels it covers are filled. On the right, ray tracing: lines go from a camera through each pixel, hit a ball, then bounce to a light and to the floor, where a shadow and a reflection form.](https://learn.benibix.com/diagrams/ray-tracing-rasterization.svg)

---

Source: https://learn.benibix.com/term/design/shader
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
