[TUTORIAL] Arrays & Shaders: Heatmaps in Unity (Patreon)
Published:
2016-01-27 11:41:49
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
http://www.alanzucconi.com/2016/01/27/arrays-shaders-heatmaps-in-unity3d/
This tutorial explains how to pass arrays to shaders in Unity. This feature has been present for a long time, but is mostly undocumented. Unity 5.4.0 Beta 1 will introduce a proper API to pass arrays to shaders; this technique however will work with any previous version.
- Introduction
- Step 1: The arrays
- Step 2: The shader
- Step 3: The C# code
- Step 4: A more general approach
- Conclusion & download
Files
Previews only