Tag: SetVectorArray

  • Arrays & Shaders in Unity 5.4+

    Arrays & Shaders in Unity 5.4+

    This post shows how to use arrays and shaders in Unity 5.4. Back in January I already covered this topic in an article called Arrays & shaders: Heatmaps in Unity. My original approach exposed an undocumented feature that allowed to pass arrays to shaders. Since then, Unity 5.4 has introduced proper support in its API. This tutorial replaces…