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:


Creator provides material examples related to materials GitHub, users can refer to it as needed.

results matching ""

    No results matching ""