AlphaToMask by toggle

Node-based Shader Editor

AlphaToMask by toggle

Postby vector3 » Tue Dec 04, 2018 1:57 pm

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.
vector3
 
Posts: 3
Joined: Tue Dec 04, 2018 1:51 pm

Re: AlphaToMask by toggle

Postby sethhall » Tue Dec 04, 2018 6:25 pm

Use a Static Switch node.
sethhall
 
Posts: 20
Joined: Mon Jun 25, 2018 11:09 pm

Re: AlphaToMask by toggle

Postby vector3 » Tue Dec 04, 2018 6:56 pm

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 944 times

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


Cheers.
vector3
 
Posts: 3
Joined: Tue Dec 04, 2018 1:51 pm

Re: AlphaToMask by toggle

Postby Amplify_Borba » Mon Dec 10, 2018 4:13 pm

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!
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

cron