Clip function / sprite shader optimization

Node-based Shader Editor

Clip function / sprite shader optimization

Postby wintomee » Sun Jan 20, 2019 9:15 pm

Hello.

I'm trying to use Clip function documented here but I'm unable to find it in any shader type. Is there something I'm missing?

Alternatively, is there some other ASE friendly way of optimizing cutout sprites for minimizing overdraw / optimizing GPU performance?

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

Re: Clip function / sprite shader optimization

Postby Amplify_Borba » Tue Jan 22, 2019 4:58 pm

Hello, the Clip function should be accessible through the node list in any of the Shader Types, is it not present on your side?

Image

If not, which ASE version are you on? Please make sure that you're using the latest build from our website.

If you're using a Standard shader, you don't need this node since the alpha clip is already incorporated in the Opacity Mask, which you can access by setting the shader's Blend Mode to Masked.

Image

If you're using a Template, it should be added at the end of the instructions like in the example shown in its wiki page.

I believe that this is the only way to reduce overdraw.
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