$cbox: Difference between revisions
Jump to navigation
Jump to search
Trigger hurt (talk | contribs) |
m (grammar) |
||
Line 4: | Line 4: | ||
A model will be culled as soon as the clipping bounding box is no longer in view of the camera. | A model will be culled as soon as the clipping bounding box is no longer in view of the camera. | ||
If the [[coordinates]] of the | If the [[coordinates]] of the clipping bounding box are all zero, <code>[[$bbox]]</code> is used instead. | ||
==Syntax== | ==Syntax== |
Revision as of 20:14, 19 October 2024
$cbox
is a QC command available in all Source games. It sets the clipping bounding box for the model. This box is used for the culling of models in the game for optimization.
A model will be culled as soon as the clipping bounding box is no longer in view of the camera.
If the coordinates of the clipping bounding box are all zero, $bbox
is used instead.
Syntax
$cbox (min x) (min y) (min z) (max x) (max y) (max z)