Search Unity

Weapon Clipping Fix with Cutom Passes

Discussion in 'High Definition Render Pipeline' started by paveronschuetz, Jun 4, 2022.

  1. paveronschuetz

    paveronschuetz

    Joined:
    Apr 3, 2022
    Posts:
    1
    Hello everyone,

    I just switched my project to HDRP and camera stacking isn't possible anymore. I also heard about "Custom Passes" and that there is a way to fix the weapon clipping bug with Custom Passes, but I don't know how exactly this works since im a game developer for only 2 months. If someone knows a fix or a different solution, please tell me.

    Thanks
     
  2. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    161
    You have to create a custom pass that renders for the weapon and then set the depth evaluation so that the weapon renders on top of everything else.
     
  3. TSRajesh

    TSRajesh

    Joined:
    Jun 19, 2013
    Posts:
    69
    probably this thread is not relevant anymore.This is just for those who reach here via search..

    I have a solution that works to my satisfaction..



    It is to identify how much it has clipped, and apply corrective displacement in the next frame.

    The full procedure will be covered in my tutorial of "Third person controller from the scratch"