Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Additive Scene Loading & Global Shader Keyword Limit

Discussion in 'General Graphics' started by FirstTimeCreator, Jan 18, 2020.

  1. FirstTimeCreator

    FirstTimeCreator

    Joined:
    Sep 28, 2016
    Posts:
    729
    Hello,

    I have reached a big problem and that is the open world scene I am working on his exceeding the 256 limit of shader keywords.

    So, I do not know how to resolve this issue other than to start working on the additive scene loading system and put the terrain in one scene and other elements in another and combine them.

    Will an additive scene loader overcome this issue of having too many shaders in a single scene? Because only 256 shaders/materials is a big... big limitation. Even though most of these shaders are not even active at any one given time in the scene.
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,248
  3. holyfot

    holyfot

    Joined:
    Dec 16, 2016
    Posts:
    17
    Adding Variants/Local keywords still doesn't work with a 256 keyword limit. Most asset shaders are using variants. Create a HDRP project, it uses 70 keywords + 20 standard RP keywords. Install a few assets and you're already over the limit... This issue has been going on for years and is even worse in HDRP, unity really needs to add 1024 keywords.
     
unityunity