WindowImposter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up, replaced: {{ModernWarning| → {{warning|)
Line 9: Line 9:
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]].


{{ModernWarning|This shader ''only'' works on [[brushes]].}}
{{warning|This shader ''only'' works on [[brushes]].}}


== Example VMT ==
== Example VMT ==

Revision as of 00:46, 4 January 2024

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.

Note.pngNote:Does accept some parameters in Garry's Mod Garry's Mod, such as $alpha
Todo: Which parameters? Other branches?

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.

Warning.pngWarning:This shader only works on brushes.

Example VMT

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