is a three-dimensional graphics directive that specifies that faces of polygons and other filled graphics objects are to be drawn to reflect as a flat surface.
uses the attenuation factor d for the diffuse light.
uses the attenuation factor a for the ambient light.
- FlatShading is also known per‐face shading.
- FlatShading is typically used to make individual faces and edges of polygons easily visible.
- The final color of a face of a polygon is computed from the polygon surface normal and the luminosity of the color resulting from standard shading.
- FlatShading[d,a] specifies that the diffuse light on a 3D surface should be attenuated by a factor d and the ambient light by a.
- FlatShading is effectively equivalent to FlatShading[1,1].
- The setting Lighting"Accent" uses a directional light and faithfully reproduces colors on the surface.
- The basic shading models FlatShading, GouraudShading and PhongShading compared:
Examplesopen allclose all
Basic Examples (4)
Basic Uses (5)
FlatShading with no arguments uses similar calculations for diffuse and ambient light as the default system shader:
Basic Applications (2)
Properties & Relations (3)
Wolfram Research (2022), FlatShading, Wolfram Language function, https://reference.wolfram.com/language/ref/FlatShading.html.
Wolfram Language. 2022. "FlatShading." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FlatShading.html.
Wolfram Language. (2022). FlatShading. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FlatShading.html