SpriteCard: Difference between revisions
MyGamepedia (talk | contribs) (→Depth) |
SirYodaJedi (talk | contribs) (→Appearance: $alpha and $translucent are equally expensive) |
||
| Line 40: | Line 40: | ||
=== Appearance === | === Appearance === | ||
{{MatParam|$ | {{MatParam|$translucent|bool|Translucency based upon the texture's alpha channel.}} | ||
{{MatParam|$ | {{MatParam|$alpha|float|Scale translucency of entire texture. Implies $translucent.}} | ||
{{MatParam|$nocull|bool|Disable backface culling. Useful for thin particles.}} | {{MatParam|$nocull|bool|Disable backface culling. Useful for thin particles.}} | ||
{{MatParam|$overbrightfactor|normal|Allows an HDR-like factor to be 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.}} | {{MatParam|$overbrightfactor|normal|Allows an HDR-like factor to be 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.}} | ||
Revision as of 06:25, 16 May 2025
SpriteCard is a Pixel shader available in all
Source games since
Source 2007. It is for sprite cards that are used with Source's particle system. It supports the unusual animation frame storage of Source's particles (see Animated Particles).
Parameters
Distance and Size
$minsize
$maxsize
$minfadesize
$maxfadesize
$maxdistance
$farfadeinterval
Blending
$blendframes
$dualsequence
$sequence_blend_mode
$maxlumframeblend1
$zoomanimateseq2
$addoverblend
$addself
$addbasetexture2
Depth
$depthblend
$depthblendscale
$inversedepthblend
$scenedepth
Orientation
$orientation
$orientationmatrix
$aimatcamera
Appearance
$translucent
$alpha
$nocull
$overbrightfactor
$ramptexture
$mod2x
$opaque
$muloutputbyalpha
$intensity
Vertex Colors
$vertexcolor
$vertexalpha
$vertexcolorlerp
$lerpcolor1
$lerpcolor2
$vertexfogamount
Misc
$extractgreenalpha
$splinetype
$useinstancing
$alphatrailfade
$radiustrailfade
$shadowdepth
$cropfactor
$distancealpha
$distancealpha
$softedges
$edgesoftnessstart
$edgesoftnessend
$outline
$outlinecolor
$outlinealpha
$outlinestart0
$outlinestart1
$outlineend0
$outlineend1
$perparticleoutline