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 GPU Instancing with DOTS disable lights

Discussion in 'Entity Component System' started by JediNizar, Apr 11, 2021.

  1. JediNizar

    JediNizar

    Joined:
    Nov 13, 2016
    Posts:
    111
    Hi,
    Enabling GPU Instancing, leads to disable the lights on entities.
    As long the object is still a gameObject, the lights affects the object as it should be, but as soon as it's converted to an entity, it's no longer affected by the lights.
    Strange though that the shadows are still there.
    The first Image shows 2 cubes as entities with 2 identical materials, except that the one on the right has GPU Instancing enabled.
    shadow.png
    OFF.png ON.png
     
  2. JediNizar

    JediNizar

    Joined:
    Nov 13, 2016
    Posts:
    111
    As ECS is officially not supported with unity 2021.
    I tried GPU instancing in unity 2020.. and it works there as expected
     
  3. Marble

    Marble

    Joined:
    Aug 29, 2005
    Posts:
    1,268
    I'm seeing GPU Instancing disable light in Unity 2020.3.4, too. Any difference in package versions between you and me?

    HDRP 10.4.0
    Hybrid Renderer 0.11.0-preview.42

    Filed a bug report, just in case (#1329912).

    EDIT: I hadn't realized that I needed to enable Hybrid Renderer V2 in the Project Settings / Scripting Define Symbols as per this thread. It works now in V2.
     
    Last edited: Apr 19, 2021