I’m working on a VR game where you are looking down on at a level with your units (think RTS view in VR basically), and I’m trying to get it so that only objects in a given area are rendered, and objects on the edge are partially rendered, very similar to what you see in this video of Airmech Command.
However, despite my best efforts I’ve yet to find a great way to do this. I’ve tried stencils, but have only managed to create something like a window, where things to the left or right of the area aren’t shown at all, but even if an object is in front or behind the area they are still rendered. I’ve tried depthmasking, but had similar problems. The best I’ve managed is a setup where I use a depth mask to remove an area from being rendered at all on one camera, and filled the area with the rendering of another camera, but this resulted in just a flat image basically, so if you had objects with height, they would be cut off at a certain height.
Basically, everything I’ve found seems to just cull pixels on a 2d level, just based on screen position, as opposed to world space, and I need something that stops rendering based on 3D space. Any help given would be greatly appreciated