Env lightglow

From Valve Developer Community
< Zh
Revision as of 07:58, 14 October 2019 by 求生的兔 (talk | contribs) (Created page with "{{lang|Env lightglow}} File:env_lightglow.jpg|thumb|300px|right|<code>env_lightglow</code> used in a tunnel to create an illusion of overwhelming brightness at the end of th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
env_lightglow used in a tunnel to create an illusion of overwhelming brightness at the end of the tunnel.

Template:Base point It puts an additive glow in the world, mostly used over light sources and other locations where a glow would look natural (tunnels, caves, dark buildings, etc). It's main difference from env_sprite is it's ability to appear in a configurable distance.

Note.png注意:This entity does not have Enable/Disable inputs. Using the Color input with a parameter of 0 0 0 will hide it, as a workaround.
C++ 在源代码中,它由 class CLightGlow 代表,定义于 lightglow.cpp

Flags

  • 1: Visible only from front

Keyvalues

Color (R G B) (rendercolor) ([todo internal name (i)]) <color255(en)>
Glow color.
Vertical Size (VerticalGlowSize) ([todo internal name (i)]) <整数(en)>
Vertical glow size in units.
Horizontal Size (HorizontalGlowSize) ([todo internal name (i)]) <整数(en)>
Horizontal glow size in units.
Minimum Distance (MinDist) ([todo internal name (i)]) <整数(en)>
The distance at which this effect will be fully translucent.
Maximum Distance (MaxDist) ([todo internal name (i)]) <整数(en)>
The distance at which this effect will be at full intensity.
Outer Maximum Distance (OuterMaxDist) ([todo internal name (i)]) <整数(en)>
If larger than the maximum distance, this is the length at which the glow will fade completely out, between the span of the maximum distance and this length.
Glow Proxy Geometry Size (0-64) (GlowProxySize) ([todo internal name (i)]) <浮点型(en)>
Size of the glow to be rendered for visibility testing. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.
HDR color scale (HDRColorScale) ([todo internal name (i)]) <浮点型(en)>
Color multiplier for players using HDR.


Inputs

Color <color255(en)>
Change the render color of the glow. A value of 0 0 0 will hide the sprite.


Outputs