WindowImposter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 239145 by Pdan4 (talk) It's not nonsensical, try it ingame)
Tag: Undo
m (There, i clarified why)
Line 2: Line 2:
'''<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.
The faces' orientation isn't taken into account when reflecting the cubemap, which makes it very convenient for making multiple fake 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]].
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]].

Revision as of 20:46, 11 February 2021

Stub

This article or section is a stub. You can help by expanding it.

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

The faces' orientation isn't taken into account when reflecting the cubemap, which makes it very convenient for making multiple fake 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"
}