Cutout texture 2d

I want to be able to have a gameobject thats basically just a black box on top of everythink else. Then I want to be able to place other gameobjects which are just gradients on top of that and they should “cut out” of the black texture like this : 80431-image.png Please keep in mind that I have pretty much no experiance with shaders :slight_smile:

Here’s a video that might help explain what Im trying to achive

The easiest solution might be to add the ScreenOverlay Effect from the Standard Assets.

  • Import the Effects Asset. (Assets → Import Package → Effects)
  • Put SreenOverlay script onto camera
  • Change the texture and Blend mode to get desired effect.