entityguide‎ > ‎

func_mirror

Func_mirror is experimental entity that simulates mirror on a brush surfaces with textures of your choice. This entity works currently only in windowed mode. Keep in mind that many graphical issues are to be expected while this entity is still work in progress. This entity can be freely triggered to enable/disable rendering. Mirror also supports any movement type (by trigger_setorigin).
Keyvalues


"Zoom", zoom:
Scales image the mirror reflects.

"Max FPS", fps:
Target frames per second rendered by this entity. Decreasing improves performance.

"Min Render Distance", mindist:
Minimum render distance in which entity is rendering. Leave empty or set to 0 for no minimum distance threshold.

"Max Render Distance", maxdist:
Maximum render distance in which entity is rendering. Leave empty or set to 0 for infinite.

"Texture Mode", textureMode:
Set which textures on this brush are replaced by mirror renderer. Options are:
  • All Textures: Apply mirror renderer on every surface.
  • { Textures: All transparent textures (those which names starts with ' { ' character).
  • Named Texture: Textures with name specified in 'Texture Name' keyvalue below.

"Texture Name", textureName:
Name of the texture to apply mirror renderer on. Works only when 'Texture Mode' is set to 'Named Texture'.


Flags


1
: "Solid": Enable collision.

2
: "Start Disabled": If selected, entity need to be triggered in order to start rendering mirror.

16
: "
Render only every 2nd frame": Update rendered image only every two frames.


Notes

  • Mirrors can be moved an rotated by trigger_setorigin. In that case remember to tie origin brush to func_mirror.


    Comments