Mesh Filter和Mesh Renderer

Material

effect:

defines the texture and color used for rendering

 

Shader

Include:

Different methods of rendering objects are defined according to different graphics cards

Fragment programs for arbitrary vertices and different renderings

Texture properties and color and numbering settings in assignable materials

 

Mesh: mesh

effect:

Consists of triangles. Stored by an array, the first 3 elements represent the vertices of the first triangle, then the second and third in turn.


Normals are interpolations of face orientations between triangle sides and corners. Normal interpolation can be used to create smooth shading to approximate surfaces.

To achieve the shadow effect of the light hitting the surface, the normal is added. Shading is performed by the angle between the incident light direction and the normal.


The surface of the mesh is texturing

Texture triangles are stretched and fixed to fit mesh triangles. The coordinates of the texture triangle are defined in the UV coordinate system (0,0)(1,1);

Like normals, the coordinates of each texture are unique.


Mesh Filter: mesh filter

Role: Specify the mesh (the geometry of the object)


Mesh renderer: Mesh renderer

The mesh renderer takes the shape of the geometry from the mesh filter and renders it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325867350&siteId=291194637