Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

srp multiple render pass problem

Discussion in 'Graphics Experimental Previews' started by ftc1718, Feb 22, 2019.

  1. ftc1718

    ftc1718

    Joined:
    Mar 7, 2018
    Posts:
    4
    What should i do to get object rendered with the same Pass tag in SRP
    `
    Pass1{ Tags{"lightmode" = "forward"}};
    Pass2{ Tags{"lightmode" = "forward"}
    `

    When i use

    `var drawSettings = new DrawRendererSettings(camera, new ShaderPassName("forward"))`

    it only renderd the first pass and the other pass of tags(forward) skiped.
    But in default pipeline(Unity standard) it rendered first pass then the next pass.

    I want to render all the pass with same "lightmode" = "forward", not just the first one in SRP, and how to do that?