Page 1 of 1

Direct me to an object masking shader?

PostPosted: Sun May 27, 2018 6:01 am
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!

Re: Direct me to an object masking shader?

PostPosted: Mon May 28, 2018 11:23 am
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 (259.09 KiB) Viewed 1748 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!