Is there a way to access the lightmapindex in a cg shader? Using "unity_Lightmap" gives me the lightmap texture itself, but I need the index so I can use it to lookup a value in an array.
Memo : - Surface : https://forum.unity.com/threads/sampling-lightmap-in-surface-shader.185714/ - Vertex Frag : https://gist.github.com/jimfleming/5937437