I’ve been experimenting with perspective and want to make a level that is only fully lit within the bounds of a SceneCapture2D’s frustum. In other words, if I were to pilot the SceneCapture camera the entire frame would be normally lit, but from any other perspective everything off screen from the SceneCapture’s POV is black.
In the video below, you can see an attempt made at it using black Decals parented to the camera.
While this looks mostly fine on the surface, the perspective is inconsistent and vertical rotation is impossible. I would much rather have a guaranteed frame designated by the bounds of the frustum.
Is there any way I could somehow force an unlit black material to project outwards from each side of the frustum of the scene capture? I imagine tracing would be an expensive option, but I can’t think of any other way.