Does PlayCanvas support multiple materials on one mesh?


I have a question about textures/shaders. Could I use 2 materials/shaders for one model/mesh? For example, in Unity, you could bind 2 materials for one mesh and the mesh will be rendered two times (paints over each other). The first standard material will render diff, normal, emission map but the second material will add additional effects like special lighting and etc. For example, I want to use standard physics-based material and add your Custom Shader for disappearing my unit.

Thank you!

We don’t support this feature at the moment. I think the best way to do this would be to use a new diffuse shader chunk which implements the dissolve feature.

This example uses a shader chunk to do the plasma effect:

I see. I think will better performance in one all-inclusive shader.

Thank you, Dave!