Page 1 of 1

Possible to register a local texture variable?

PostPosted: Thu Mar 14, 2019 5:28 pm
by andrewtaylorjohnson
Hello!

I'm wondering if it is possible to register a texture as a local variable. I have a texture object I'm using in several places in the same shader but it pains me to see unorganized wired :P This is the only variable I can't figure out how to register. Is it possible to even do this?

Thanks!

Re: Possible to register a local texture variable?

PostPosted: Fri Mar 15, 2019 10:37 am
by Amplify_Borba
Hello Andrew, this can't be achieved with the Register / Get Local Var nodes, however, you can do the following:

Image

Connecting your Texture Object to a Texture Sample, and then adding additional Texture Samples as a Reference to the original one, without having to worry about reaching the sampler limit since you're simply referencing a sample, not adding new ones.