Search Unity

How to create Instance Shader that works with Texture atlas? Shader broken in HDRP.

Discussion in 'High Definition Render Pipeline' started by Unlimited_Energy, Mar 22, 2020.

  1. Unlimited_Energy

    Unlimited_Energy

    Joined:
    Jul 10, 2014
    Posts:
    469
    Not sure if I can use shader graph or what. I had a hacked together shader I wrote that allowed Instancing on instantiated prefabs that would set the texture based on a atlas with texture coordinates using Instanced Properties inside the shader. Any suggestions on how to use my texture atlas so when I create hundreds of these objects based on their type it will select the correct texture from the atlas in HDRP and allow me to have them instanced together?