Clear Flags, Background, Depth & Viewport Rect Properties

Notes:

Unity Camera properties:
Clear Flags, Background, Depth & Viewport Rect

Clear Flags:
Indicate what to use to clear old frame and draw new captured frame on top of it.

W.K.T camera captures our scene at some frames per second. Every captured new frame is rendered on top of the old frame.

- Skybox:
Whenever a new frame has to be rendered; the old frame is cleared with given skybox on top it new captured frame of the scene is rendered.

- Solid color:
Whenever a new frame has to be rendered; the old frame is cleared with given background color on top it new captured frame of the scene is rendered.

- Depth only:
Whenever a new frame has to be rendered; from the old frame only game objects with depth are cleared not the old frame itself. So you can clearly observe old frames will be still visible and game objects in the scene are rendered properly without intersecting.

- Don't clear:
Whenever a new frame has to be rendered; from the old frame nothing is cleared. So you can clearly observe old frames will be still visible and game objects in the scene intersect with each other.

Background:
Indicates which background color is used, when Clear flags property is set to Solid color

Depth:
Indicates the drawing order of the camera on the screen (game view)
Note: Cameras with a larger depth value will be drawn on top of cameras with a smaller depth value

Viewport Rect:
Indicates where on the screen this camera view will be drawn
- Bottom left corner of screen indicates (0,0)
- Top right corner of screen indicates (1,1)
- X, Y, W and H indicate x position, y position, width and height of the viewport respectively.

Multiple Camera Setup:
Create a new camera;
For top view adjust camera position and rotation
Depth = 1
Viewport Rect x =0.5, y =0.5, width=0.5 and height=0.5
Clear Flags = Depth only