WindowImposter

From Valve Developer Community
Revision as of 20:43, 11 February 2021 by NvC DmN CH (talk | contribs) (Undo revision 239145 by Pdan4 (talk) It's not nonsensical, try it ingame)
Jump to: navigation, search

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"
}