How to Design Flat Shading Graphics using p5.js ?
Flat shading is a lighting technique used in 3D computer graphics to shade each polygon of an object based on the angle between the polygon’s surface normal and the direction of the light source, their respective colors and the intensity of the light source.
- Color is computed once for each face of the polygon.
- All pixels in a polygon are set to the same color
- Works for objects made of flat faces.