The difference between material and sharedMaterial

Summarize:

    When using the material attribute, a new material will be added to it every time, but the material material in the local project will not be changed; sharedMaterial is a shared material, no matter how many times it is used, only one memory will be occupied in the memory. but will affect other objects using the same shader

おすすめ

転載: blog.csdn.net/Fivelin/article/details/79862854