$nofog

From Valve Developer Community
Revision as of 10:01, 15 August 2023 by Pee (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The $nofog command prevents fog from overdrawing a material. It is commonly used on 2D skyboxes.

$nofog is not linked to any particular shader, so it can be used at any time.

Syntax

$nofog 1