Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

GPU instancing - HDRP ShaderGraph

Discussion in 'Graphics Experimental Previews' started by cdeniz, Jul 28, 2018.

  1. cdeniz

    cdeniz

    Joined:
    Feb 8, 2014
    Posts:
    9
    Is there an estimate on when we expect this feature to arrive? Its already part of the LWRP, so hopefully soon. GPU instancing is required for ECS, so unfortunately I can't upgrade my project to use HDRP yet.
     
    ju_my likes this.
  2. ju_my

    ju_my

    Joined:
    Mar 7, 2017
    Posts:
    4
    If you find any response somewhere... ^^
     
  3. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    571
    GPU Instancing for shader graph is working.
    I tested using HDRP 4.8.0 in Unity 2018.3.2f and it's working fine.
     
    ju_my likes this.
  4. ju_my

    ju_my

    Joined:
    Mar 7, 2017
    Posts:
    4
    Ok nice thank you
     
  5. TigerFudo

    TigerFudo

    Joined:
    Nov 30, 2012
    Posts:
    19
    Is there any sample on how to setup intancing in shadergraph?
     
  6. darkydoodle

    darkydoodle

    Joined:
    Oct 27, 2018
    Posts:
    49
    Fine except for material property block parameters...
     
    TigerFudo likes this.
  7. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    571
    You make your shader as you would.
    You can only enable instancing from a material so when you assign it to a material you will see "Enable GPU Instancing" on that material.

    upload_2019-2-5_12-4-2.png
     
    TigerFudo likes this.
  8. TigerFudo

    TigerFudo

    Joined:
    Nov 30, 2012
    Posts:
    19
    got it ,thx
     
  9. opponent019

    opponent019

    Joined:
    Feb 6, 2014
    Posts:
    20
    But if I do this it just turns black, any idea how to fix that?