Original Post
Hi, I need to blend between quite alot of textures, so instead of passing each and every texture to my shader, I would like to send them into 1 package. Either a 3D texture, or a texture array. So, the logical first question would be, what's the best choice? I need to tileable textures for terrain kinda-like stuff:
color1 = tex3D/Array( tileMap, vec3( u,v, tileIndex1) ) * weight1;
color2 = tex3D/Array( tileMap, vec3( u,v, tileIndex2) ) * weight2;
...
Second question, can you construct these textures from other 2D textures that are already loaded into the video memory? Otherwise I would need to read x image files, combine them into 1 big array, and then upload the whole thing. The first option seems to be faster/more friendly, in case I have varying settings. Greetings, Rick