Difference between revisions of "$nofog"

From Valve Developer Community
Jump to: navigation, search
(adding information)
m (removed todo because nothing unusual happens on models)
 
Line 1: Line 1:
 
The '''<code>$nofog</code>''' command prevents [[fog]] from overdrawing a [[material]]. It is commonly used on [[Skybox (2D)|2D skyboxes]].
 
The '''<code>$nofog</code>''' command prevents [[fog]] from overdrawing a [[material]]. It is commonly used on [[Skybox (2D)|2D skyboxes]].
  
<code>$nofog</code> is not linked to any particular shader, so it can be used at any time. {{todo|What happens on models?}}
+
<code>$nofog</code> is not linked to any particular shader, so it can be used at any time.
  
 
==Syntax==
 
==Syntax==

Latest revision as of 10:35, 8 June 2019

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