Possible to register a local texture variable?

Node-based Shader Editor
Post Reply
andrewtaylorjohnson
Posts: 6
Joined: Wed Mar 06, 2019 5:02 pm

Possible to register a local texture variable?

Post 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!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Possible to register a local texture variable?

Post 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.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply