Page 1 of 1

Clip function / sprite shader optimization

PostPosted: Sun Jan 20, 2019 9:15 pm
by wintomee
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.

Re: Clip function / sprite shader optimization

PostPosted: Tue Jan 22, 2019 4:58 pm
by Amplify_Borba
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.