Difference between revisions of "WindowImposter"

From Valve Developer Community
Jump to: navigation, search
m (minor edit)
m (fix bugged text)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
 
'''<code>WindowImposter</code>''' accepts only [[$envmap]] which is force drawn no matter the user settings or console commands used, like <code>mat_specular 0</code>.
 
'''<code>WindowImposter</code>''' accepts only [[$envmap]] which is force drawn no matter the user settings or console commands used, like <code>mat_specular 0</code>.
 +
 +
The cubemap is not displayed as a reflection, but as if it's a skybox, which makes it very convenient for making multiple skyboxes.
 +
 +
In Half-Life 2, WindowImposter is used by the material <code>dev/dev_windowportal.vmt</code>, and used extensively on [[func_illusionary]] or [[func_brush]] entities in conjunction with [[func_areaportalwindow]].
  
  
 
Works on brushes only.
 
Works on brushes only.
  
 +
== Example VMT ==
 +
 +
<syntaxhighlight line>
 +
WindowImposter
 +
{
 +
"$envmap" "space/space_envmap"
 +
}
 +
</syntaxhighlight>
  
 
[[Category:Shaders]]
 
[[Category:Shaders]]
 
[[Category:Stubs]]
 
[[Category:Stubs]]

Latest revision as of 02:21, 3 September 2020

WindowImposter accepts only $envmap which is force drawn no matter the user settings or console commands used, like mat_specular 0.

The cubemap is not displayed as a reflection, but as if it's a skybox, which makes it very convenient for making multiple skyboxes.

In Half-Life 2, WindowImposter is used by the material dev/dev_windowportal.vmt, and used extensively on func_illusionary or func_brush entities in conjunction with func_areaportalwindow.


Works on brushes only.

Example VMT

WindowImposter
{
	"$envmap" "space/space_envmap"
}