Author Topic: Material ID for layered material  (Read 250 times)

2024-05-18, 12:35:18

Börje

  • Active Users
  • **
  • Posts: 43
    • View Profile
Is it possible to assign a material IDto a layered Corona material?

I cann assign one to the base materials but not to the layered material itself therefore I struggle to let corona render a mask for the layered material.

Thanks in advance for any help!

2024-05-23, 09:07:37
Reply #1

bnji

  • Corona Team
  • Active Users
  • ****
  • Posts: 218
  • Benjamin
    • View Profile
    • Corona Renderer
Hello @Börje,

At this moment, this is not possible as the nature of a layered material is that it is a material conformed by several materials (layers), so this is why it is not considered an ID assignment for this material type.
However, depending on your workflow, you can use different workarounds/alternatives, like using a Mask multi-pass, setting the same Material ID for all materials that are being used in the Layered material to extract this information/mask, and using that Material ID for the Mask multipass.
I hope this helps.
Looking forward to hearing from you.
Benjamin Rosas | chaos-corona.com
3D Support Specialist - Corona | contact us