Garry's Mod Wiki

Garry's Mod Wiki

Description

Used for cam.Start.

Unless stated otherwise, the default values for all these keys would be inherited from the engine's current CViewSetup and do not have static representations.

Members

number x
The x position of the view port

Default: nil

number y
The y position of the view port

Default: nil

number w
The width of the view port

Default: nil

number h
The height of the view port

Default: nil

string type
The type of cam. Valid types are:
  • "2D" - No additional arguments are required
  • "3D" - Only origin and angles are needed, all other parameters are optional.

Default: "3D"

Vector origin
The position to render from

Default: nil

Angle angles
The angles to render from

Default: nil

number fov
The field of view

Default: nil

number aspect
The aspect ratio of the view port (Note that this is NOT set to w/h by default)

Default: nil

number zfar
The distance to the far clipping plane

Default: nil

number znear
The distance to the near clipping plane

Default: nil

boolean subrect
Set to true if this is to draw into a subrect of the larger screen.

Default: nil

boolean bloomtone
m_bDoBloomAndToneMapping

Default: false

table offcenter
A table having these keys: ( all floats )
  • left
  • right
  • bottom
  • top

Default: nil

table ortho
If set, makes the view/camera orthogonal. A table having these keys: ( all floats )
  • left
  • right
  • bottom
  • top

Default: nil

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...