Search Unity

Question HDRP & Hybrid missing the "Hybrid Instanced (experimental)" checkbox in Shader Graph

Discussion in 'Shader Graph' started by XRA, Feb 2, 2021.

  1. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    Following the documentation for the latest version of HDRP (10.2.2) and Hybrid renderer (0.11.0-preview.42)

    After adding ENABLE_HYBRID_RENDERER_V2 to the project's scripting defines, I notice that Unity recompiles, but the Hybrid Instanced experimental checkbox is missing within Shader Graph.

    IS this a known issue ?

    **EDIT** Turns out the documentation is out of date

    To work with Hybrid Instancing you need to enable Override Property Declaration then from the dropdown choose Hybrid Per Instance

    now your property will be within the
    UNITY_DOTS_INSTANCING_START(MaterialPropertyMetadata) block and contained within a
    UNITY_DOTS_INSTANCED_PROP macro
     
    Last edited: Feb 2, 2021