From Valve Developer Community
Revision as of 11:50, 25 December 2009 by MrTwoVideoCards (talk | contribs)

Jump to: navigation, search

The SpriteCard shader is for materials that will be used with Source's particle system. It supports the unusual animation frame storage of Source's particles (see Animated Particles), and also provides the following unique parameters:

$minsize <normal>
$maxsize <normal>
A minimum/maximum on-screen size for a particle. It will never go over/under the specified value. To do: What if it's in a rendertarget?
Tip:$minsize is good for ensuring that effects like bloodspray are visible at a distance.
$minfadesize <normal>
$maxfadesize <normal>
Causes a particle to begin (min) and end (max) fading out based on its on-screen size. Both params are required.
Tip:Good for controlling performance when walking through a cloud of large particles.
$blendframes <bool>
By default animated textures blend between any given two animation frames to increase the apparent animation rate. In translucent materials this adds additional overdraw to the scene, however. Disabling frame blend will trade the animation smoothing for performance.
$overbrightfactor <int?>

Allows a HDR like factor applied to the sprite. The base value is 0, where 1.0 would make it nearly two times as bright. This value can help make sprites like fire, and light glows feel more realistic.