ViewData
Description
Table structure used for render.RenderView.
Unless stated otherwise, the default values for all these keys would be inherited from the engine's CViewSetup and do not have static representations.
Members
number aspectratio
The deprecated alias of
aspect. Defaults to width divided by height.
Deprecated: Use aspect instead!
table ortho
If set, renders the view orthogonally. A table with these keys:
- left
- right
- top
- bottom
Default: nil
number ortholeft
Coordinate for the left clipping plane. Requires
ortho to be set to true.
Deprecated: Use ortho table instead!
Default: nil
number orthoright
Coordinate for the right clipping plane. Requires
ortho to be set to true.
Deprecated: Use ortho table instead!
Default: nil
number orthotop
Coordinate for the top clipping plane. Requires
ortho to be set to true.
Deprecated: Use ortho table instead!
Default: nil
number orthobottom
Coordinate for the bottom clipping plane. Requires
ortho to be set to true.
Deprecated: Use ortho table instead!
Default: nil
number znear
The distance of the view's origin to the near clipping plane. Defaults to the current view's near clipping distance
number zfar
The distance of the view's origin to the far clipping plane. Defaults to the current view's far clipping distance
number znearviewmodel
The distance of the view's origin to the near clipping plane for the viewmodel. Defaults to the viewmodel's current near clipping distance
number zfarviewmodel
The distance of the view's origin to the far clipping plane for the viewmodel. Defaults to the viewmodel's current far clipping distance
boolean dopostprocess
Currently works identically to the "bloomtone" option (it also overrides it if you set this to false).
Default: false
boolean bloomtone
Disables default engine bloom and pauses the "brightness changes" on HDR maps.
Default: true
number with VIEW enum viewid
This is identifying which logical part of the scene an entity is being redered in, see VIEW enum.
Default: 0
table offcenter
This allows you to "zoom in" on a part of the screen - for example, the top-left quarter of the screen. This is similar to how poster splits the screen into separate renders.
It's a table with 4 keys, controlling what portion of the screen to draw:
- left - where the left edge starts. Natural value is 0.
- right - where the right edge ends. Natural value is equal to w (the width of the viewport).
- top - where the
bottomedge starts. Natural value is 0. - bottom - where the
topedge ends. Natural value is equal to h (the height of the viewport).
Note that top and bottom are reversed.
Values outside the viewport are allowed, but not recommended - instead you should increase the view FOV.
Default: nil
Garry's Mod
Rust
Steamworks
Wiki Help