Page 1 of 1
Outputting a new rendertexture from a series of operations
Posted: Fri Apr 13, 2018 5:56 am
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?
Re: Outputting a new rendertexture from a series of operatio
Posted: Fri Apr 13, 2018 11:35 am
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!
Re: Outputting a new rendertexture from a series of operatio
Posted: Fri Apr 13, 2018 8:54 pm
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
Re: Outputting a new rendertexture from a series of operatio
Posted: Mon Apr 16, 2018 2:58 pm
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!