Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Feature Request add option to exclude fps objects from refraction

Discussion in 'Universal Render Pipeline' started by Mister-D, Jul 22, 2021.

  1. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    im using URP for weapon rendering to disable weapon clipping and receive world shadows.
    works great.
    however i want to use water in my project and the fps objects get refracted.
    this can be fixed by setting the "weapons" layer to "render after transparents" bu then i loose the abilitys of weapon clipping and shadows.

    could there be an option to exclude the weapons from refraction even if they are set to "render before opaques"?
     

    Attached Files:

  2. primaerfunktion

    primaerfunktion

    Joined:
    Jan 16, 2012
    Posts:
    98
    Can you fix that in the refraction shader maybe? Like use the depth texture to check if a pixel would be under the water surface and only distort the ones that are?
     
  3. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    maybe
    but im not a shader coder and the water im using is from the asset store.