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
Is there a documented API to add custom functionality to the ...
Search found 3 matches
- Tue Dec 04, 2018 6:56 pm
- Forum: Amplify Shader Editor
- Topic: AlphaToMask by toggle
- Replies: 3
- Views: 2120
- Tue Dec 04, 2018 4:11 pm
- Forum: Amplify Shader Editor
- Topic: Custom expression gets optimized away. Bug?/Feature request
- Replies: 1
- Views: 1537
Custom expression gets optimized away. Bug?/Feature request
Hi,
I encountered an incorrect behaviour in shader compilation:
I have a custom expression implementing the clip() function. The custom expression's mode is set to "Call".
If I now do NOT connect the output of the custom expression (in-)directly to the master node, the whole custom expression ...
I encountered an incorrect behaviour in shader compilation:
I have a custom expression implementing the clip() function. The custom expression's mode is set to "Call".
If I now do NOT connect the output of the custom expression (in-)directly to the master node, the whole custom expression ...
- Tue Dec 04, 2018 1:57 pm
- Forum: Amplify Shader Editor
- Topic: AlphaToMask by toggle
- Replies: 3
- Views: 2120
AlphaToMask by toggle
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.
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.