Search Unity

Question SimpleLit shader with MaterialPropertyBlock Support

Discussion in 'Universal Render Pipeline' started by Opeth001, Mar 17, 2021.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    Hello Everyone,

    does anyone managed to add MaterialPropertyBlock Support for URP SimpleLit shader ?

    Thanks in Advance!
     
  2. CogumeloSoft

    CogumeloSoft

    Joined:
    Dec 28, 2012
    Posts:
    88
    IFAIK you should not use MaterialPropertyBlock in URP since it breaks SRP Batch.
     
    Opeth001 likes this.
  3. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    So what is the right approach to renderer multiple objects having slightly different changes like color.
    In my case I'm interested in passing lightmap data.
     
  4. CogumeloSoft

    CogumeloSoft

    Joined:
    Dec 28, 2012
    Posts:
    88
    Opeth001 likes this.