$nofog: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "'''<code>$nofog</code>''' prevents fog from affecting a material. It is commonly used on skyboxes. == Usage == <source lang=php>$nofog 1</source> [[Category:List o...")
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''<code>$nofog</code>''' prevents [[fog]] from affecting a [[material]]. It is commonly used on [[skybox]]es.
The '''<code>$nofog</code>''' command prevents [[fog]] from overdrawing a [[material]]. It is commonly used on [[Skybox (2D)|2D skyboxes]].


== Usage ==
<code>$nofog</code> is not linked to any particular shader, so it can be used at any time.


<source lang=php>$nofog 1</source>
==Syntax==


[[Category:List of Shader Parameters|N]]
<pre>$nofog 1</pre>
 
[[Category:Shader parameters|n]]

Latest revision as of 10:01, 15 August 2023

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