Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Why my shader is visible outside of Viewport mask of ScrollView?

$
0
0

Hello. In my project in Unity I have a ScrollView. Scroll panel in Unity has the next structure.

 

Post image

Viewport has Mask that makes visible elements of Content only inside this mask.

When in Content I have an Image that uses a material with my custom shader (just a color gradient), this image becomes visible outside of Viewport(outside of mask).

Could you prompt me, how can I use my shaders properly in this particular case.


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>