Amplifying your potential.
Page 1 of 1

Custom Render Texture

PostPosted: Tue Jul 31, 2018 1:33 pm
by talthilas
Hi,
Is it possible to use unity’s ‘custom render texture’ with Amplify Shader editor? I think the closest thing you have is your PostEffect template, but if you read the Unity docs they require you to use a specific frag shader in one of their #includes but that clashes with the template frag shader. I don’t know how to setup a custom render texture shader with Amplify so any advice would be great.

Cheers!

Re: Custom Render Texture

PostPosted: Tue Jul 31, 2018 2:44 pm
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

Unfortunately, ASE does not write to render textures, although this is something that we hope to support in the future.

You may still use render textures in ASE by dragging them onto a Texture Sample or Texture Object node.

Please let me know if you have any further questions, I'll be happy to help.

Re: Custom Render Texture

PostPosted: Wed Dec 05, 2018 4:58 pm
by wintomee
Why is this a problem for ASE?

Quoting from https://docs.unity3d.com/2019.1/Documen ... tures.html it says:

The only mandatory steps when writing a shader for a custom texture are:

#include “UnityCustomRenderTexture.cginc”
Use the provided Vertex Shader
CustomRenderTextureVertexShader

Use the provided input structure v2f_customrendertexture for the pixel shader

Other than that, the user is free to write the pixel shader as he wishes.

I mean, couldn't we just build a shader and then add aforementioned mandatory steps?

Re: Custom Render Texture

PostPosted: Fri Dec 07, 2018 5:11 pm
by Amplify_Borba
Hello, not too long ago we've added support for custom render textures via two new templates, Custom RT Init and Custom RT Update, that you can find inside the AmplifyShaderEditor > Plugins > EditorResources > Templates folder within the 'CustomRTTemplates' package.

After extracting these, you can also extract the sample that we've created, located in the Examples> Official CustomRTRain folder within the 'Custom RT Samples' package.

Please let me know if this helps.

Re: Custom Render Texture

PostPosted: Tue Dec 11, 2018 7:17 pm
by wintomee
Gonna check it out. I'm sure it will help, since there can't be much to go wrong :)

Thanks!

Re: Custom Render Texture

PostPosted: Wed Dec 12, 2018 10:36 am
by Amplify_Borba
No problem, let us know if you have any further questions or come across any issues!