Search Unity

2019.1.2f1 Personal / Decal Projection

Discussion in 'General Graphics' started by Takamba, May 16, 2019.

  1. Takamba

    Takamba

    Joined:
    Jan 11, 2018
    Posts:
    25
    Hi

    Can I somehow define which object are affected by a decal projector?

    I would like to exclude some objects, so they don't get lit by the decal.

    Any hint is much appreciated.

    Regards,
    Phil
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
  3. Takamba

    Takamba

    Joined:
    Jan 11, 2018
    Posts:
    25
    Thanks for the hint.

    I wasn't aware of this projector, I used the decal projector only.

    Should this work in HDRP?

    I am asking because the prefab out of the standard assets doesn't seem to work in my scene.
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Oh, wrong projector then. That's the legacy projector and likely won't work with HDRP. Honestly it shouldn't be used with the built in rendering paths either if it can be helped.

    Unfortunately I don't know if there's any way to exclude objects from receiving decals with the HDRP decal projector. The documentation doesn't mention anything, nor did I see anything obvious in the code to handle that.
    https://github.com/Unity-Technologies/ScriptableRenderPipeline/wiki/Decal-Projector

    You probably should ask about this here:
    https://forum.unity.com/threads/feedback-wanted-high-definition-render-pipeline.560653/
     
  5. Takamba

    Takamba

    Joined:
    Jan 11, 2018
    Posts:
    25
    Hi bgolus

    Thanks a lot for your effort.

    Much appreciated.