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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question HDRP Layered Lit - Blending between multiple materials at run-time

Discussion in 'High Definition Render Pipeline' started by AntLewis, Sep 23, 2022.

  1. AntLewis

    AntLewis

    Joined:
    Feb 2, 2010
    Posts:
    232
    Hey there, I'm trying to blend between several materials at run time and stumbled across the layers lit shader for HDRP.

    This is almost what exactly I need, however I need to change the blend between materials at run time dynamically - however the only way to control the visibilty of shaders in this shader is via a layer mask in the surface input. Is there anyway to edit this layer mask at runtime to get hte desired effect?

    Thanks
    Ant