Direct me to an object masking shader?

Node-based Shader Editor
Post Reply
pixelpickle
Posts: 1
Joined: Sun May 27, 2018 5:55 am

Direct me to an object masking shader?

Post by pixelpickle »

Hi, I've created a few simple shaders in Amp Shader Editor, but this one has me stumped right from get go.

I would like to use a sprite or plane with a gradient, which reveals otherwise hidden objects behind it.

Could someone please direct me to a post or give an example of how I should approach this?

Thanks!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Direct me to an object masking shader?

Post by Amplify_Borba »

Hello, thank you for getting in touch!

A simple way to mask a plane through a gradient would require you to set its Blend Mode to transparent, then use the following setup in which we're getting a gradient from the Texture Coordinate's V output, then manipulating it through adding a value from -1 to 1, with the final output connected to the Opacity port:
OpacityPlane.jpg
OpacityPlane.jpg (258.31 KiB) Viewed 2374 times
If this is not the effecy you're looking for, could you please provide additional details?
A video or screenshot would would be great, so that we may best help you figure out the best way to achieve it!
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