Material System Overview
In the real world, all objects interact with light, and depending on the appearance of the surface of the object, the effect of the light is also different.
Cocos Creator uses material to describe the appearance of objects, such as whether a small ball is a glass ball or a plastic ball, and a box is a wooden box or a metal box. The light and shade, light points, light reflections, light scattering and other effects they present under lighting conditions are all achieved by Effect. The material is the data set of the shader (including texture maps, lighting algorithms, etc.), which is convenient for visual adjustment.
The material system mainly includes the following:
- Material assets
- Procedural use of materials
- Builtin materials
- Material System Class Diagram
- Cocos Creator 3.1 Material Upgrade Guide
- Upgrade Guide: Effect from v3.4.x to v3.5.0
- Upgrade Guide: Effect from v3.5.x to v3.6.0
Creator provides material examples related to materials GitHub, users can refer to it as needed.