Page 1 of 1

AlphaToMask by toggle

PostPosted: Tue Dec 04, 2018 1:57 pm
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.

Re: AlphaToMask by toggle

PostPosted: Tue Dec 04, 2018 6:25 pm
by sethhall
Use a Static Switch node.

Re: AlphaToMask by toggle

PostPosted: Tue Dec 04, 2018 6:56 pm
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.97 KiB) Viewed 954 times

Is there a documented API to add custom functionality to the node settings bar or would I have to start from scratch?


Cheers.

Re: AlphaToMask by toggle

PostPosted: Mon Dec 10, 2018 4:13 pm
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.