Post Process template and _MainTex

Node-based Shader Editor

Post Process template and _MainTex

Postby Wodzuu » Thu Jan 18, 2018 11:38 pm

Hello!

I am trying to make an Unity image effect with ASE and when I select Shader Type=Post Process I can see in the generated code that _MainTex sampler is added automatically from the template. The question is how to reference the _MainTex sampler in the visual node editor? I can add new "Texture Sample" node but I am not allowed to name it "Main Tex" as the name collides with existing one.

Thank you in advance for any help. Have a great day!
Maciej
Wodzuu
 
Posts: 2
Joined: Thu Jan 18, 2018 11:32 pm

Re: Post Process template and _MainTex

Postby Amplify_Borba » Fri Jan 19, 2018 2:49 pm

Hello Wodzuu, thank you for getting in touch and for your support!

In order to access shader properties and global variables that have been declared for the current Template you're editing, you need to add a Template Parameter Node and select which parameter to use by clicking on the upper left corner or going to the node's properties.

Image

You can find more information about Shader Templates in our wiki page.

Please let me know if you have any further questions, 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: Post Process template and _MainTex

Postby Wodzuu » Fri Jan 19, 2018 5:20 pm

Thank you @Amplify_Borba. That's what I was looking for.
Wodzuu
 
Posts: 2
Joined: Thu Jan 18, 2018 11:32 pm

Re: Post Process template and _MainTex

Postby Amplify_Borba » Mon Jan 22, 2018 12:09 pm

Wodzuu wrote:Thank you @Amplify_Borba. That's what I was looking for.


Glad to be of assistance!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, the Unity Asset Store thrives on user interaction and direct feedback.Every bit helps, your feedback is extremely valuable to us.

Feel free to get back in touch if you have further questions, 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