Unlit Opacity Mask shader?

Node-based Shader Editor
Post Reply
sethhall
Posts: 20
Joined: Mon Jun 25, 2018 11:09 pm

Unlit Opacity Mask shader?

Post by sethhall »

Is there an version of the Unlit shader with support for Opacity Masking? How would I go about creating this if it does not exist? ... I'm kind of a noob with Unity and am just scratching the surface. Used to use Frostbite for about 5 years but the framework is totally different and I'm unclear on how to attack this. Thanks

Seth
konsfik
Posts: 1
Joined: Sat Jul 28, 2018 10:03 pm

Re: Unlit Opacity Mask shader?

Post by konsfik »

Hello there, I was recently in the same situation (looking for the correct way to go about what you are asking for).
I found a way to do it, which can be described as follows:

Start a new shader (or edit your existing one) and go to the output node's properties. There, use these settings:

General:
- Shader Type: Surface
- Light Model: Unlit
Blend Mode:
- Render Type: Transparent
- Render Queue: Transparent

The result is an unlit shader that also allows you to use a transparent mask (with grayscale transparency)

Hope this helps!
K
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Unlit Opacity Mask shader?

Post by Amplify_Borba »

Hello, thank you for getting in touch!

To add to konsfik's reply, you can also set the Blend Mode to Masked in your Unlit Surface Shader, depending on your specific requirements.

Don't hesitate to get back in touch if you come across any further questions, thanks!
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