Outputting a new rendertexture from a series of operations

Node-based Shader Editor

Outputting a new rendertexture from a series of operations

Postby sticklez » Fri Apr 13, 2018 5:56 am

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?
sticklez
 
Posts: 7
Joined: Fri Mar 16, 2018 5:43 pm

Re: Outputting a new rendertexture from a series of operatio

Postby Amplify_Borba » Fri Apr 13, 2018 11:35 am

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

Re: Outputting a new rendertexture from a series of operatio

Postby sticklez » Fri Apr 13, 2018 8:54 pm

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
sticklez
 
Posts: 7
Joined: Fri Mar 16, 2018 5:43 pm

Re: Outputting a new rendertexture from a series of operatio

Postby Amplify_Borba » Mon Apr 16, 2018 2:58 pm

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!
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: No registered users and 63 guests

cron