[TUTORIAL] Arrays & Shaders in Unity 5.4 (Patreon)
Published:
2016-10-26 16:35:42
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
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 the previous article. If you have read the previous tutorial, you do not need any changes to your shader code and you can skip to Step 2.
- Step 1. The Shader
- Step 2. The Script
- Step 3. Limitations
As always, thank you for your generous support! ♥
Files
Previews only