Outputting a new rendertexture from a series of operations

Node-based Shader Editor
Post Reply
sticklez
Posts: 7
Joined: Fri Mar 16, 2018 5:43 pm

Outputting a new rendertexture from a series of operations

Post by sticklez »

I have one shader that that creates a mask from performing a series of operations

I have another separate material I would like to use that same mask as a texture.

Is there a way to turn a series of operations to a texture to a rendertexture I could use in another material?
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Outputting a new rendertexture from a series of operatio

Post by Amplify_Borba »

Hello!

You will likely have to resort to additional steps to extract a texture from a shader, such as the ones discussed in this thread, as this is beyond the scope of our editor. Have you tried any of the methods discussed there?

If the node setup used to generate the mask can be re-utilized in other shaders, I suggest looking into our Shader Functions.

Please let me know if this helps, thanks!
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!
sticklez
Posts: 7
Joined: Fri Mar 16, 2018 5:43 pm

Re: Outputting a new rendertexture from a series of operatio

Post by sticklez »

thanks- I did the hackiest workaround if anyone else really is ever stuck

I offset'ed my resulting sahder textures, basically turned them into an atlas

have a special planes mesh to map the atlased textures to

then I point cameras at the planes and make rendertextures out of it I can use for anything
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Outputting a new rendertexture from a series of operatio

Post by Amplify_Borba »

Interesting, would love to see it in action but, in any case, I'm glad to know that you found an alternative, thank you for sharing it with the community!
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