AlphaToMask by toggle

Node-based Shader Editor
Post Reply
vector3
Posts: 3
Joined: Tue Dec 04, 2018 1:51 pm

AlphaToMask by toggle

Post by vector3 »

Hi,

I would like to add a toggle to the editor UI that allows me to turn on/off the AlphaToMask property. How would I do this?
I'm using a custom Unlit shader template.


Cheers.
sethhall
Posts: 20
Joined: Mon Jun 25, 2018 11:09 pm

Re: AlphaToMask by toggle

Post by sethhall »

Use a Static Switch node.
vector3
Posts: 3
Joined: Tue Dec 04, 2018 1:51 pm

Re: AlphaToMask by toggle

Post by vector3 »

Hm, not sure if this works as its not a shader feature / multi compile statement.
I was thinking more of a toggle like in the master node settings of the surface shader. There you can set things like rendering options etc.
settings.JPG
settings.JPG (16.89 KiB) Viewed 2118 times
Is there a documented API to add custom functionality to the node settings bar or would I have to start from scratch?


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

Re: AlphaToMask by toggle

Post by Amplify_Borba »

Hello, thank you for getting in touch!

Although it's not possible to add this to our templates' master node parameters at this time, it is definitely something that we will support soon, so thank you for bringing it up!

In any case, you can read about ASE's API here.
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!
Post Reply