Created @December 17, 2021 1:04 PM
Tags Materials Shaders Unity mesh normals
Shaders and materials let you define how your 3D object looks: their colors,
reflectivity and physical texture
The mesh is the 3D skeleton of Game Object
Shaders and materials tell unity how you want the meshes of your 3D Game
Objects to be rendered.
A mesh is a series of flat 2D polygons defined by vertices, which are points in 3D
space that are stored as XYZ coordinates.
If a 3D Object were made only with 2D polygons, it would be faceted like a diamond.
Shaders and materials 1
, 3D meshes need additional information to make them appear smooth or curved in
some places.
Mesh data also includes normals, which are additional values that define the
direction the surface is facing.
Normals indicate the shape of a polygon; The shader renders the mesh as curved,
according to normals, without actually changing the mesh.
Shaders and materials 2
, It's the shader's job to take into account all the data from vertices and the normals to
accurately represent the mesh surface.
Mesh filter component
The Mesh Filter component points to the mesh coordinate data in your project.
Mesh Render component
The mesh render component is where you specify how the mesh will be rendered.
Shaders and materials 3