func_areaportalwindow
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
January 2024
func_areaportalwindow
is a brush entity available in all Source games.
class hierarchy |
---|
CFuncAreaPortalWindow defined in func_areaportalwindow.cpp
|
It creates an areaportal that automatically closes as the camera moves away, fading a second, opaque brush in to fill the gap.
Bug:(Known to affect Half-Life 2) The
dev/dev_window
texture has to be on both sides of the brush, combining it with any other texture (except nodraw) will result in rendering glitches (objects popping in and out of the PVS depending on player position and view angle).Keyvalues
- Rendered Window
(target)
<targetname> - The brush entity that fills the gap left by the portal when closed.
- Fade Start Distance
(FadeStartDist)
<integer> - Distance that the fade into the Rendered Window brush entity begins. The further back the player views, the more visible the brush entity will be.
- Fade End Distance
(FadeDist)
<integer> - Distance at which the Rendered Window is fully visible, and the portal closes.
- Translucency limit
(TranslucencyLimit)
<normal> - Prevents the Rendered Window brush from ever going completely transparent. Useful if your rendered window uses an opaque glass material.
- Foreground bmodel
(BackgroundBModel)
<targetname> - Optional brush entity that is drawn after the fading brush model. This model should have alpha in its textures so you can see through it.
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
SetFadeStartDistance
<integer>- Sets Fade Start Distance.
SetFadeEndDistance
<integer>- Sets Fade End Distance.