WindowImposter: Difference between revisions
Jump to navigation
Jump to search
Note:Does accept some parameters in
Garry's Mod, such as $alpha
NvC DmN CH (talk | contribs) m (There, i clarified why) |
No edit summary |
||
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>. | ||
{{note|Does accept some parameters in {{gmod|4}}, 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. | The faces' orientation isn't taken into account when reflecting the cubemap, which makes it very convenient for making multiple fake skyboxes. | ||
Line 6: | 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|Works on brushes only.}} | |||
Works on brushes only. | |||
== Example VMT == | == Example VMT == |
Revision as of 20:05, 30 September 2023
WindowImposter
accepts only $envmap which is force drawn no matter the user settings or console commands used, like mat_specular 0
.


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.
Example VMT
WindowImposter
{
"$envmap" "space/space_envmap"
}