Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Terrain Sample Asset Pack 2.0 - SG BiRP Lit doesn't support instancing

Discussion in 'World Building' started by BOXOPHOBIC, Dec 15, 2021.

  1. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    506
    Hi there, I just imported the new terrain sample pack and there are some issues in SG with BiRP + Lit + GPU Instancing:

    1. Created a new Builtin Render Pipeline 2021.2.6 project, installed SG 12.1 before importing the terrain package.
    upload_2021-12-15_9-36-31.png

    2. Imported the sample pack and add a few prefabs to a scene, all good with the Unlit shader.
    upload_2021-12-15_9-41-26.png

    3. Changing the shader to Lit is breaking the shader:
    upload_2021-12-15_9-42-30.png

    4. Disabling Instancing fixes the shader:
    upload_2021-12-15_9-45-47.png

    So while the new details system is designed to work with instancing, and instancing is broken with lit shaders created with SG in BIRP, I guess going with Unlit material type was the only choice.

    Except for that little bug, nice sample pack! Waiting for trees :) Cheers!
     
  2. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    506
    Lurking-Ninja likes this.
  3. Wow, I somehow missed that. The documentation needs a bit of an update, apparently. :( Sorry for the interruption then!
     
    BOXOPHOBIC likes this.
  4. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    506
    Compared to other features which are marketed here and there, I don't think I saw anything related to it. It is available since 2021.2 since the alpha release if I remember correctly. GPU Instancing was broken at that point, looks like it remained the same.