- Home /
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 : Please keep in mind that I have pretty much no experiance with shaders :)
Here's a video that might help explain what Im trying to achive https://www.youtube.com/watch?v=L1dd4fkVSAM
Answer by Jessespike · Oct 18, 2016 at 08:02 PM
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.
Im afraid that this doesn't work because I cant place "light" gameobjects as I explained in the question and seen in the video