$cbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Fixed name of page in QC category. Action performed by bot)
Line 16: Line 16:


[[Category:Modeling]]
[[Category:Modeling]]
[[Category:QC Commands]]
[[Category:QC Commands|cbox]]
[[Category:Source]]__NOTOC__
[[Category:Source]]__NOTOC__

Revision as of 10:14, 27 April 2024

English (en)中文 (zh)Translate (Translate)

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 this clipping bounding box are all zero, $bbox is used instead.

Syntax

$cbox (min x) (min y) (min z) (max x) (max y) (max z)

See also