Search Unity

Question Custom Render Pass: CreateDrawSettings and DrawRenderers Issues.

Discussion in 'General Graphics' started by JoshuaLim007, Sep 10, 2021.

  1. JoshuaLim007

    JoshuaLim007

    Joined:
    Sep 24, 2018
    Posts:
    4
    Image A:
    Capture.PNG

    For testing purposes I set override material to null. So when I draw the renderers it will render opaques on the screen without any modifications (Image A). But I want "Weapon Render On Top Opaque (Render Objects)" to be in effect but it is not as seen in image B. That render objects feature has a custom FOV so that the shotgun looks more like the shotgun in Image C. I can't seem to have a workaround. Is there a way to override the materials after the Render Object Feature is in place? The CreateDrawSettings function seems like it is getting the scene before any render feature was in place.

    I searched the docs and the forums and it seems like no one else ran into this problem.

    Image B: dwadaw.PNG

    Image C:
    fff.PNG