Custom Render Texture

Your feedback is very important to us. We are listening.

Custom Render Texture

Postby talthilas » Tue Jul 31, 2018 1:33 pm

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!
talthilas
 
Posts: 1
Joined: Tue Jul 31, 2018 1:26 pm

Re: Custom Render Texture

Postby Amplify_Borba » Tue Jul 31, 2018 2:44 pm

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.
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: Custom Render Texture

Postby wintomee » Wed Dec 05, 2018 4:58 pm

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?
wintomee
 
Posts: 9
Joined: Wed Oct 10, 2018 3:17 pm

Re: Custom Render Texture

Postby Amplify_Borba » Fri Dec 07, 2018 5:11 pm

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.
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: Custom Render Texture

Postby wintomee » Tue Dec 11, 2018 7:17 pm

Gonna check it out. I'm sure it will help, since there can't be much to go wrong :)

Thanks!
wintomee
 
Posts: 9
Joined: Wed Oct 10, 2018 3:17 pm

Re: Custom Render Texture

Postby Amplify_Borba » Wed Dec 12, 2018 10:36 am

No problem, let us know if you have any further questions or come across any issues!
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 General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests