Custom render texture template

Node-based Shader Editor

Custom render texture template

Postby joelrowney » Fri Jan 19, 2018 2:12 pm

I`m currently looking to see i can use a custom render texture with the shader editor, but havent been able to construct a shader template that works, but then i realy dont know what i`m doing (hence using a texture editor)

the shader includes seem quite straight forward as outlined in the documentation

https://docs.unity3d.com/Manual/CustomR ... tures.html

hopefully this will be of interest to somebody with a higher skill level than i.
joelrowney
 
Posts: 8
Joined: Wed Jul 26, 2017 7:20 pm

Re: Custom render texture template

Postby Amplify_Borba » Fri Jan 19, 2018 3:04 pm

Hey there joelrowney, great to hear from you again!

Could you elaborate on what you're trying to achieve via a Custom Render Texture?
We would be glad to assist you if you could provide some additional details, or even a screenshot/video of the effect you mean to achieve.

Looking forward to your reply!
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 template

Postby joelrowney » Wed Jan 24, 2018 1:04 am

Its sure getting busier on here. you guys are doing an amazing job at progressing the editor and also supporting your now huge community of users.
I have been looking at using custom render textures for a couple of things. the simplest one just to quickly get the output of a shader into a texture. there are other ways of course, but after reading the unity documentation it seemed like they could also be use to produce a screen buffer so that it may be possible to make some progressive effect along the lines of https://www.shadertoy.com/view/XddSRX
or indeed feedback loops like old tv effects.
thanks for taking the time to reply to my questions and again for help you have given me in the past.
joelrowney
 
Posts: 8
Joined: Wed Jul 26, 2017 7:20 pm

Re: Custom render texture template

Postby Amplify_Borba » Wed Jan 24, 2018 12:03 pm

joelrowney wrote:Its sure getting busier on here. you guys are doing an amazing job at progressing the editor and also supporting your now huge community of users.
I have been looking at using custom render textures for a couple of things. the simplest one just to quickly get the output of a shader into a texture. there are other ways of course, but after reading the unity documentation it seemed like they could also be use to produce a screen buffer so that it may be possible to make some progressive effect along the lines of https://www.shadertoy.com/view/XddSRX
or indeed feedback loops like old tv effects.
thanks for taking the time to reply to my questions and again for help you have given me in the past.


Thank you for the kind words and for sharing this information with the community!

We do provide a few Post-Processing examples that make use of the Custom Render Textures functionality, which also make use of our Post Process Texture Template.
You can check out both Post processing samples located within the ASE package at AmplifyShaderEditor/Examples/Official/TemplateExamples/PostProcess, which contains the FilmGrain and Sobel effects.

Both are using a script in the camera that implements post processing through the OnRenderImage Camera class function, which allows modifying the final image rendered by the camera by processing it with shader based filters, and the Graphics.Blit function, which will render the source texture using the material with the post-processing shader and save it to the destination texture by automatically copying the "source" texture to the material's main texture ( or _MainTex in the shader code ).

More information here: Writing Post-Processing Effects

Please let me know if this information is helpful, 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


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests

cron