Capturing the scene through a CCTV camera
As we’ve seen by now, materials usually work hand in hand with textures to drive certain material parameters. Those usually come in different shapes and sizes: sometimes, textures are static 2D images that we use to drive the appearance of a model, while on other occasions we might rely on video files to create the effect of an animated sequence (as we saw in the last recipe).
Beyond those two examples, there is yet another type that doesn’t rely on existing data, but one that allows us to capture what is happening inside the level. This is called a Scene Capture component, and it allows us to create interesting functionalities, such as displaying what a camera placed inside our scene would see – mimicking the behavior of a CCTV camera. In this recipe, we’ll study how to work with this type of asset, known as Scene Capture, and how to put it to good use inside our materials.
Getting ready
Most of the assets...