s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Graphics
ViewSetup
chevron_left
Graphics
struct
ViewSetup
Fields
crop_din
AmbientLightAdd
crop_din
AmbientLightTint
crop_din
ClearColor
crop_din
ClipSpaceBounds
crop_din
EnablePostprocessing
crop_din
FieldOfView
crop_din
FlipX
crop_din
FlipY
crop_din
GradientFog
crop_din
ProjectionMatrix
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
14
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.
EnablePostprocessing
Nullable`1
Whether post processing should be enabled for this view. If null it will use the camera's setting.
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
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.