s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Graphics
ViewSetup
chevron_left
Graphics
struct
ViewSetup
Fields
crop_din
AmbientLightAdd
crop_din
AmbientLightTint
crop_din
ClearColor
crop_din
ClipSpaceBounds
crop_din
EnableDebugOverlays
crop_din
EnablePostprocessing
crop_din
EnableUI
crop_din
ExcludeTags
crop_din
FieldOfView
crop_din
FlipX
crop_din
FlipY
crop_din
GradientFog
crop_din
ProjectionMatrix
crop_din
RenderTags
crop_din
Time
crop_din
Transform
crop_din
ViewHash
crop_din
ZFar
crop_din
ZNear
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.
struct
Sandbox.Rendering
.
sealed
Sandbox.Engine
crop_din
Fields
19
AmbientLightAdd
Nullable`1
If set then this will be added to the ambient light color
AmbientLightTint
Nullable`1
If set then the regular scene's ambient light will be multiplied by this
ClearColor
Nullable`1
Overrides the camera's clear color
ClipSpaceBounds
Nullable`1
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.
EnableDebugOverlays
Nullable`1
Whether engine debug overlays should be rendered in this view. Null inherits the camera's setting. This controls engine overlays, not scene geometry such as editor gizmos.
EnablePostprocessing
Nullable`1
Whether post processing should be enabled for this view. If null it will use the camera's setting.
EnableUI
Nullable`1
Whether UI should be rendered in this view. Null inherits the camera's setting.
ExcludeTags
TagSet
Additional tags to exclude from this view, alongside the camera's existing exclusions. Null or an empty set adds no exclusions. This does not change the camera's tags. When used in a command list, keep the set unchanged while the list can execute.
FieldOfView
Nullable`1
Overrides the camera's field of view
FlipX
Nullable`1
When rendering to a texture, this allows you to flip the view horizontally.
FlipY
Nullable`1
When rendering to a texture, this allows you to flip the view vertically.
GradientFog
Nullable`1
Allows overriding gradient fog for this view
ProjectionMatrix
Nullable`1
Overrides the camera's projection matrix
RenderTags
TagSet
Overrides the camera's inclusion tags for this view. Null inherits the camera's filter; an empty set includes all tags, subject to exclusions. This does not change the camera. When used in a command list, keep the set unchanged while the list can execute.
Time
Nullable`1
Overrides shader time (g_flTime), in seconds, for this view and its child views. Null inherits the parent view's time, or the normal frame time for a top-level view.
Transform
Nullable`1
Overrides the camera's position and rotation
ViewHash
int
If you're rendering a subview this will allow the renderer to find the same view again next frame
ZFar
Nullable`1
Overrides the camera's zfar
ZNear
Nullable`1
Overrides the camera's znear
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.