# Sandbox.Rendering.ViewSetup

When manually rendering a camera this will let you override specific
elements of that render. This means you can use most of the camera's
properties, but override some without disturbing the camera itself.

- Kind: struct
- Namespace: `Sandbox.Rendering`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Fields

- [`AmbientLightAdd`](/api/Sandbox.Rendering.ViewSetup/AmbientLightAdd): If set then this will be added to the ambient light color
- [`AmbientLightTint`](/api/Sandbox.Rendering.ViewSetup/AmbientLightTint): If set then the regular scene's ambient light will be multiplied by this
- [`ClearColor`](/api/Sandbox.Rendering.ViewSetup/ClearColor): Overrides the camera's clear color
- [`ClipSpaceBounds`](/api/Sandbox.Rendering.ViewSetup/ClipSpaceBounds): Clipspace is usually used for rendering posters, or center-offsetting the view. You're basically zooming into a subrect of the clipspace. So imagine you draw a smaller rect inside the first rect of the frustum.. that's what you're gonna render - that rect.
- [`EnablePostprocessing`](/api/Sandbox.Rendering.ViewSetup/EnablePostprocessing): Whether post processing should be enabled for this view. If null it will use the camera's setting.
- [`FieldOfView`](/api/Sandbox.Rendering.ViewSetup/FieldOfView): Overrides the camera's field of view
- [`FlipX`](/api/Sandbox.Rendering.ViewSetup/FlipX): When rendering to a texture, this allows you to flip the view horizontally.
- [`FlipY`](/api/Sandbox.Rendering.ViewSetup/FlipY): When rendering to a texture, this allows you to flip the view vertically.
- [`GradientFog`](/api/Sandbox.Rendering.ViewSetup/GradientFog): Allows overriding gradient fog for this view
- [`ProjectionMatrix`](/api/Sandbox.Rendering.ViewSetup/ProjectionMatrix): Overrides the camera's projection matrix
- [`Transform`](/api/Sandbox.Rendering.ViewSetup/Transform): Overrides the camera's position and rotation
- [`ViewHash`](/api/Sandbox.Rendering.ViewSetup/ViewHash): If you're rendering a subview this will allow the renderer to find the same view again next frame
- [`ZFar`](/api/Sandbox.Rendering.ViewSetup/ZFar): Overrides the camera's zfar
- [`ZNear`](/api/Sandbox.Rendering.ViewSetup/ZNear): Overrides the camera's znear
