Direct me to an object masking shader?

Node-based Shader Editor

Direct me to an object masking shader?

Postby pixelpickle » Sun May 27, 2018 6:01 am

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!
pixelpickle
 
Posts: 1
Joined: Sun May 27, 2018 5:55 am

Re: Direct me to an object masking shader?

Postby Amplify_Borba » Mon May 28, 2018 11:23 am

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 (259.09 KiB) Viewed 1468 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!
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