Page 1 of 1
Unlit Opacity Mask shader?
Posted:
Fri Jul 27, 2018 9:50 pm
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
Re: Unlit Opacity Mask shader?
Posted:
Sat Jul 28, 2018 10:11 pm
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
Re: Unlit Opacity Mask shader?
Posted:
Mon Jul 30, 2018 10:22 am
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!