Env sprite: Difference between revisions
Jump to navigation
Jump to search
Note:The only rendering modes (set by its rendermode keyvalue) that can render a sprite properly, is Glow, Additive, Additive Fractional Frame and World Space Glow. See Render Modes for more info.
(Told which render modes work with this entity.) |
m (Typo.) |
||
Line 3: | Line 3: | ||
==Entity Description== | ==Entity Description== | ||
An entity that controls the drawing of a sprite in the world. Can for instance be used for adding glows to light sources. | An entity that controls the drawing of a sprite in the world. Can for instance be used for adding glows to light sources. | ||
{{note|The only rendering modes (set by its ''rendermode'' keyvalue) that can render a sprite properly, is ''Glow'', ''Additive'', ''Additive Fractional Frame'' | {{note|The only rendering modes (set by its ''rendermode'' keyvalue) that can render a sprite properly, is ''Glow'', ''Additive'', ''Additive Fractional Frame'' and ''World Space Glow''. See [[Render Modes]] for more info.}} | ||
==Keyvalues== | ==Keyvalues== |
Revision as of 02:12, 28 September 2006
Entity Description
An entity that controls the drawing of a sprite in the world. Can for instance be used for adding glows to light sources.

Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- Template:Kv renderfields
- Template:Kv dxlevelchoice
- Template:Kv hdrcolorscale
- framerate
- <float> Rate at which the sprite should animate, if at all.
- model
- <sprite> Material of the sprite to be drawn.
- scale
- <float> Scale multiplier of the sprite.
- GlowProxySize
- <float> Size of the glow to be rendered for visibility testing. Must be larger than the distance from the sprite center to empty space. So if this glow is inside geometry (like a light bulb), set this value to be bigger than the bulb's radius. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.
Flags
- 1 : Start on
- 2 : Play Once
Inputs
- Template:I targetname
- Template:I renderfields
- Template:I parentname
- SetScale <float>
- Set the scale.
- HideSprite
- Hide the sprite. Won't be drawn until the 'ShowSprite' input is received.
- ShowSprite
- Show the sprite.
- ToggleSprite
- Toggle the sprite between hidden and shown.