Download

turn decals on/off on a material basis

Hi,

is it possible to turn decals on/off per material, instead of per mesh?

Thanks!

Do you have an example of what you want?

I have a mesh with multiple materials, and I would like the decal to be applied only where a certain material is present. I know I could re-import the mesh and have separate meshes for decal application and non-decal application, but I would like to avoid that.

The only way I can think of doing that (right now) is by using a post processing volume to blend the stuff together.
But I don’t know where and how you can create and use render targets for outputting the decal to.

So with that said, I would do something like this:

  1. Render the no decal materials and outputting there setting to the alpha of the custom RT
  2. Use PP to blend from the custom RT back into the frame buffer based on the Alpha

HTH