Revision Difference
Structures/ViewSetup#546179
<cat>struct</cat>⤶
<structure>⤶
<realm>Client</realm>⤶
<description>⤶
Table structure used for <page>render.GetViewSetup</page>.⤶
</description>⤶
<fields>⤶
<item name="origin" type="Vector">The view's origin/position</item>⤶
<item name="angles" type="Angle">The view's angles</item>⤶
<item name="aspect" type="number">Width divided by height</item>⤶
<item name="x" type="number">The x position of the viewport</item>⤶
<item name="y" type="number">The y position of the viewport</item>⤶
<item name="width" type="number">The width of the viewport</item>⤶
<item name="height" type="number">The height of the viewport</item>⤶
⤶
<item name="fov" type="number">The main view's FOV, adjusted for aspect ratio.</item>⤶
<item name="fov_unscaled" type="number">The main view's FOV as the user setting.</item>⤶
<item name="fovviewmodel" type="number">The viewmodel's FOV, adjusted for aspect ratio.</item>⤶
<item name="fovviewmodel_unscaled" type="number">The viewmodel's FOV as the user setting.</item>⤶
⤶
<item name="ortho" type="table">If the current view is orthogonal, a table with these keys:⤶
* left⤶
* right⤶
* top⤶
* bottom⤶
⤶
Will not be present if view is not orthagonal.</item>⤶
⤶
<item name="znear" type="number">The distance of the view's origin to the near clipping plane</item>⤶
<item name="zfar" type="number">The distance of the view's origin to the far clipping plane</item>⤶
<item name="znearviewmodel" type="number">The distance of the view's origin to the near clipping plane for the viewmodel</item>⤶
<item name="zfarviewmodel" type="number">The distance of the view's origin to the far clipping plane for the viewmodel</item>⤶
⤶
⤶
<item name="bloomtone" type="boolean">Whether default engine bloom and tonemapping are enabled at this instant for this view.</item>⤶
<item name="subrect" type="boolean">Whether `m_bRenderToSubrectOfLargerScreen` if set for this view.</item>⤶
<item name="offcenter" type="table">⤶
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 `bottom` edge starts. Natural value is 0.⤶
* bottom - where the `top` edge ends. Natural value is equal to h (the height of the viewport).⤶
⤶
Note that top and bottom are reversed.⤶
⤶
This will not be present if offscreen rendering is not enabled for this view.⤶
⤶
See <page>Structures/ViewData</page> for more info.⤶
</item>⤶
</fields>⤶
⤶
</structure>⤶
⤶