Search Unity

  1. Curious about what's going to be in 2020.1? Have a look at the 2020.1 beta blog post.
    Dismiss Notice
  2. Want to see 2020.1b in action? Sign up for our Beta 2020.1 Overview Webinar on April 20th for a live presentation from our evangelists and a Q&A session with guests from R&D.
    Dismiss Notice
  3. Interested in giving us feedback? Join our online research interviews on a broad range of topics and share your insights with us.
    Dismiss Notice
  4. New Unity Live Help updates. Check them out here!

    Dismiss Notice

ScriptableRenderPass and SetOverrideMaterial

Discussion in 'Graphics Experimental Previews' started by MaT227, Oct 19, 2018.

  1. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    619
    Hi there,

    I am creating a ScriptableRenderPass and I override the objects material using SetOverrideMaterial.

    Everything works well but I would like to use the base material properties value inside the override material. We can think of some kind of SetReplacementShader feature.

    As an example, if my default material has _Color I want to have access to this value in the override material.
    Any idea how to do that ?
     
  2. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    619
unityunity