It appears that the texture name parameter of the texture() function is uniform. I have a situation where I'm loading multiple textures in a loop and require "name" to be varying...
for (i = 0; i < GLOB_TEX_CHANNELS; i += 1)
Name = GlobUS_X0[i];
if (Name != "")
Cp1 = color(float texture(Name, sAdj, tAdj, "blur", p1));
where GlobUS_X0[i] is a list passed as a shader parameter. This seems to work fine in 3Delight, Air, PrMan and Aqsis.
Attached is 3Delight/Pixie comparison renders showing Pixie only using the first texture multiple times.
Log in to post a comment.