Materials, Shaders and Textures
•
•
Materials: define how a surface should be rendered, including
references to textures, tiling information, color, etc.
–
The options available depend on which Shader the Material is using.
Shaders: small scripts that contain the mathematical
calculations and algorithms for calculating the color of each
pixel rendered, based on the lighting input and the Material
configuration.
•
Textures: are bitmap images.
–
A Material can contain references to textures, so that the Material’s
Shader can use the textures while calculating the surface color.
–
Textures can also represent other aspects of a Material’s surface such
as its reflectivity or roughness.