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.

Global shader properties with SRP batcher

Discussion in 'Shaders' started by azmi_unity, Dec 22, 2021.

  1. azmi_unity


    Dec 13, 2020
    When marking shader properties as Global, the shader no longer becomes SRP batcher compatible.

    Is it not possible to use Shader.SetGlobalXXX in SRP batcher compatible shaders?

    I'm using DOTS Hybrid Renderer, is there no better way other than setting the value for each instance, even though it is the same for all.