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.
3D Material
The settings for a 3D surface. They make it look like wood, metal, glass or cloth.
A material tells the renderer what a 3D surface is made of. It sets the color, how shiny or rough it is, and whether it is metal. It can also use images, like a texture map for color or a normal map for bumps. A shader reads the material and works out the color of each pixel. One model can get many looks just by changing its material.
Shader
A small program on the graphics card that decides how surfaces look. It sets each pixel's color.
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.
In one line
- 3D Material
- The settings for a 3D surface. They make it look like wood, metal, glass or cloth.
- Shader
- A small program on the graphics card that decides how surfaces look. It sets each pixel's color.