func_fake_worldportal
func_fake_worldportal is a brush entity available
with any version of Mapbase.Used to produce perfectly reflective glass that renders world + entities. Typically, you want your glass brush to have nodraw on all non-reflective surfaces and you want to use a shader like lightmappedreflective in your material applied to the non-nodraw surfaces. See hl2/materials/glass/reflectiveglass001.vmt for an example. NOTE: currently, you cannot use reflective glass in scenes with water, and you can only have 1 reflective glass in your view frustum ( + pvs ) at a time.
KeyValues
- Target Plane (target) <target_destination>
Target entity to render from.
Target entity to render from.
- Plane Direction (Pitch Yaw Roll) (PlaneAngles) <angle>
Angles indicating the direction to look in. (added onto target entity's angles)
Angles indicating the direction to look in. (added onto target entity's angles)
- Sky Mode (SkyMode) <choices>
How to draw the sky through this view.
How to draw the sky through this view.
- View scale (scale) <integer>
Scales the view, similar to sky_camera scale.
Scales the view, similar to sky_camera scale.
- Render target (RenderTarget) <choices>
Makes this fake world portal target a specific RT texture instead of just _rt_WaterReflection. You can manually type in any RT texture name if you know what you're doing.
Makes this fake world portal target a specific RT texture instead of just _rt_WaterReflection. You can manually type in any RT texture name if you know what you're doing.
- Fog Controller (FogController) <target_destination>
Makes this fake world portal use the properties of a specific env_fog_controller when rendering the scene. If no fog controller is specified, the scene will use the local player's fog parameters.
Makes this fake world portal use the properties of a specific env_fog_controller when rendering the scene. If no fog controller is specified, the scene will use the local player's fog parameters.
Inputs
- SetTargetPlane
<target_destination>
Sets the target plane.
Sets the target plane.
- SetTargetPlaneAngle
<vector>
Sets the target plane direction.
Sets the target plane direction.
- SetSkyMode
<integer>
Sets the sky mode. NOTE: 2 = draw sky texture, 1 = draw 3D skybox!
Sets the sky mode. NOTE: 2 = draw sky texture, 1 = draw 3D skybox!
- SetRenderTarget
<string>
Sets the render target.
Sets the render target.
- SetFogController
<target_destination>
Sets the fog controller.
Sets the fog controller.
- SetScale
<float>
Sets the view scale.
Sets the view scale.
