Ru/Fog Basics

From Valve Developer Community
< Ru
Revision as of 09:05, 3 May 2009 by 00000 (talk | contribs) (New page: Добавьте точечную энтити env_fog_controller на ваш уровень. Для обычного тумана вам нужно установить значени...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Добавьте точечную энтити env_fog_controller на ваш уровень. Для обычного тумана вам нужно установить значение параметра Fog Enable(туман включен) на "Yes"(да), изменить Primary Fog Color на нужный вам цвет тумана. С помощью параметров Fog Start(начало тумана) и Fog End(конец тумана) определите, на какой расстоянии в юнитах будет визуализироваться туман. Fog Start определяет расстояние между игроком и начальной точкой тумана. Fog End - расстояние, на котором туман будет полностью непрозрачным.

Fog Blend, Primary Fog Color and Secondary Fog Color allow you to change the color of the fog depending on the direction that the player is facing. Create a env_fog_controller entity, set the primary fog color to red, the secondary color to blue, and keep the fog direction as 1 0 0 (i.e. East aka Right aka 0 degrees). In-game, the player will see red fog when they look east, blue fog when they look west, and purple fog if they look north or south.

Far Z clip plane - this setting is used for optimizing your map. Anything beyond this distance (in world units) will not be rendered. It is recommended to keep this number higher then your Fog End value.

См. также