Clip node

Node-based Shader Editor
Post Reply
mossman
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm

Clip node

Post by mossman »

Hello,

I would know if exists a clip function node that works as the clip function of standard library of CG.
http://developer.download.nvidia.com/cg/clip.html

Thanks
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Clip node

Post by Amplify_Borba »

Hello, we provide a node for this purpose called Clip, which you can find in the Miscellaneous section of the node list.
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!
mossman
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm

Re: Clip node

Post by mossman »

Hello, many thanks!
mossman
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm

Re: Clip node

Post by mossman »

Hello,

I try a little test (I attatched a shader). In this shader I enable or disable the clip function with a static toggle but the result is the same always, the clip function works always.

Thanks
Attachments
New Amplify Shader.rar
(1.8 KiB) Downloaded 311 times
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Clip node

Post by Amplify_Borba »

This is expected and due to the way that the node works as a relay, it will always be applied to the shader.

There is a possible workaround, however, which is to set up the toggle in the Threshold value as follows:

Image

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!
mossman
Posts: 40
Joined: Sun Dec 10, 2017 3:58 pm

Re: Clip node

Post by mossman »

Ok, thanks for your help and explanation about this node. I will do this.
Post Reply