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

A good idea to use Graphics.DrawMeshInstancedIndirect for a bilboard shader ?

Discussion in 'Shaders' started by zenden_1, Feb 17, 2019.

  1. zenden_1

    zenden_1

    Joined:
    May 20, 2017
    Posts:
    53
    Hello, i'm new with shader and so i would request if it's a good idea to use this function and if not what's the best option ? Actually ise use that and it's work with Graphics.DrawMeshInstancedIndirect but maybe another option is better for performance.

    Actually i use the script and the custom shader found there: https://docs.unity3d.com/ScriptReference/Graphics.DrawMeshInstancedIndirect.html


    Basically, a sprite in unity it's just a plane, a mesh too so, why not ? in my project i just want to draw 100k-150k plane and make a billboard effect with 2D image instead of a basic 3d mesh like cube.

    Like that :
     
    Last edited: Feb 17, 2019