If i create a 3d texture via script at run-time…and produce a shader that supports it, how can I apply that to a material, or to geometry?
v slow to do it on cpu, but then you can create a texture2d in script, write it w. setpixel, and send it to any shader and material. to geometry it will follow UV. thats for 2d with 3d normals…question is vague, what kind of 3d texture? marble 3d? if create within shader use xyz world coordinates to make a 3d texture. see scrawkblog 3d noise for 3d texture xyz. consider doing it in compute shader and send teh data back to cpu, it goes 100 times faster fora each texture.