So I built a marching cubes voxel mesh and I would like to texture it.
The problem, I can set a texture easily with TriPlanar shader but that only works with 1 texture. (or 1 / direction)
However I need to set different texture based on the voxel data.
The first problem that I can’t pass the voxel data to the Surface shader, either I use UV coords or vertex color, it gets interpolated. It would work with 2 texture max but I need 10+
Any idea how to solve it, that the shader can decide ehich texture to use, and the level of the interpolation.