Difference between revisions of "$nofog"

From Valve Developer Community
Jump to: navigation, search
(stub)
(adding information)
Line 1: Line 1:
{{stub}}
+
The '''<code>$nofog</code>''' command prevents [[fog]] from overdrawing a [[material]]. It is commonly used on [[Skybox (2D)|2D skyboxes]].
'''<code>$nofog</code>''' prevents [[fog]] from affecting a [[material]]. It is commonly used on [[skybox]]es.
 
  
== Usage ==
+
<code>$nofog</code> is not linked to any particular shader, so it can be used at any time. {{todo|What happens on models?}}
  
<source lang=php>$nofog 1</source>
+
==Syntax==
 +
 
 +
<pre>$nofog 1</pre>
  
 
[[Category:List of Shader Parameters|N]]
 
[[Category:List of Shader Parameters|N]]

Revision as of 16:13, 4 March 2014

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. To do: What happens on models?

Syntax

$nofog 1