This article's documentation is for anything that uses the Source engine. Click here for more information.

SpriteCard: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (This isn't a shader parameter, right?)
Line 39: Line 39:
{{MatParam|$alpha|float|Cheap transparency.}}
{{MatParam|$alpha|float|Cheap transparency.}}
{{MatParam|$translucent|bool|Enables expensive transparency.}}
{{MatParam|$translucent|bool|Enables expensive transparency.}}
{{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.}}
{{MatParam|$ramptexture|texture|If specified, then the red value of the image is used to index this ramp to produce the output color.|dx9=1}}
{{MatParam|$ramptexture|texture|If specified, then the red value of the image is used to index this ramp to produce the output color.|dx9=1}}
{{MatParam|[[$mod2x]]|bool|Multiply the output by 2x.|since={{l4d}}}}
{{MatParam|$mod2x|bool|Multiply the output by 2x.|since={{l4d}}}}
{{MatParam|$opaque|bool|Are we opaque? Default 0.{{note|Enabling this disables these parameters: <code>$addbasetexture2, $dualsequence, $sequence_blend_mode, $maxlumframeblend1, $maxlumframeblend2, $extractgreenalpha, $ramptexture, $zoomanimateseq2, $addoverblend, $addself, $blendframes, $depthblend</code>, and <code>$inversedepthblend</code>.}}|since={{l4d}}}}
{{MatParam|$opaque|bool|Are we opaque? Default 0.{{note|Enabling this disables these parameters: <code>$addbasetexture2, $dualsequence, $sequence_blend_mode, $maxlumframeblend1, $maxlumframeblend2, $extractgreenalpha, $ramptexture, $zoomanimateseq2, $addoverblend, $addself, $blendframes, $depthblend</code>, and <code>$inversedepthblend</code>.}}|since={{l4d}}}}
{{MatParam|$muloutputbyalpha|bool|Multiply output RGB by output alpha to avoid precision problems.|since={{portal2}}}}
{{MatParam|$muloutputbyalpha|bool|Multiply output RGB by output alpha to avoid precision problems.|since={{portal2}}}}

Revision as of 20:38, 21 October 2023