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 Rendering Layer Masks + Render Features

Discussion in 'Universal Render Pipeline' started by romanpapush, Jul 1, 2020.

  1. romanpapush


    Sep 20, 2012

    As I understand URP doesn't support multi-pass shaders, so to correctly draw double-sided transparent objects I am using Renderer Features to override a material (base material renders back-faces, override material renders front-faces), which does the trick.

    But here's an issue, we can only filter by system Layer Masks, which are already heavily used for physics in my project. There is a Rendering Layer Mask settings on each MeshRenderer in the scene. But I can't seem to find any useful information on how are they currently used or how are they supposed to be used at all.

    So my question is, how can I currently have a bunch of Renderer Features with RenderObject material overrides (for example, for a bunch of different transparent materials with unique properties that are not easily solved by using a texture map for controlling those properties), without having to reserve a limited system Layer Mask for each material?
    Bonus question: Can it be possible to filter by the Material itself?

    P.S. While we're on the ugly subject of Layers and Tags, and from what I've gathered, wouldn't it be better to move Rendering Layer Masks to the top of the inspector, where the Tags and Layers reside?
    Last edited: Jul 1, 2020
    slippyfrog likes this.
  2. Gondophares


    Mar 9, 2013
    Hey, there was a similar discussion here, with some input from Unity. Perhaps the information there is of use for you.
    slippyfrog and romanpapush like this.