Portaldistancefar (Material global keyword)

The information on this page is specific to Quake 4 .


Description

Controls when to forcibly close a visportal .

Usage

In the global section of your material shader type…

portaldistancefar [float]

Parameters

  • [float] - the distance from the player in game units at which point the visportal will close.

Notes

Visportals usually only close in a specific set of circunstances; this keyword overrides that behaviour which can lead to noticeable visual artefacts so choose a distance to minimise it. See also the portalimage and portaldistancenear keywords.