Possible to register a local texture variable?

Node-based Shader Editor

Possible to register a local texture variable?

Postby andrewtaylorjohnson » Thu Mar 14, 2019 5:28 pm

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!
andrewtaylorjohnson
 
Posts: 6
Joined: Wed Mar 06, 2019 5:02 pm

Re: Possible to register a local texture variable?

Postby Amplify_Borba » Fri Mar 15, 2019 10:37 am

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


Return to Amplify Shader Editor

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron