Hey guys, i have a mesh with two submeshes, each submesh is ment to have a separate material and this is working fine.
I now want to add a third and forth material to stack the materials and create a shield effect (shown in images), but the shader/material is only being applied to submesh #1, leving submesh #0 with the base material only
#Material Stacking with multiple submeshes?
1 messages · Page 1 of 1 (latest)
Duplicate the object instead
ok, i could try that, but isnt that very consuming?
For a single or a few objects, no. But if you need to do it on many, could use a RenderObjects feature with override material instead
hm what do you mean with that?
It's a feature you add to the Universal Renderer asset that allows you to re-render objects, filtered by layer
There's an example here that uses material and depth overrides - https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@13.1/manual/renderer-features/how-to-custom-effect-render-objects.html