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 (add languagebar)
Line 27: Line 27:
=== Depth ===
=== Depth ===
{{MatParam|$depthblend|bool|Enables  [https://developer.download.nvidia.com/whitepapers/2007/SDK10/SoftParticles_hi.pdf soft particles] rendering. This uses the [[depth buffer]] to reduce the harsh edges otherwise seen when a particle sprite intersects 3D geometry.
{{MatParam|$depthblend|bool|Enables  [https://developer.download.nvidia.com/whitepapers/2007/SDK10/SoftParticles_hi.pdf soft particles] rendering. This uses the [[depth buffer]] to reduce the harsh edges otherwise seen when a particle sprite intersects 3D geometry.
{{bug|Broken in {{bms|4}} since the very first mod release, this parametr doesn't work at all. This feature is restored since [https://steamcommunity.com/games/362890/announcements/detail/1715207569423590279 Xen Engine update].}}
{{bug|Broken in {{bms|4}} since the very first mod release, this parameter doesn't work at all. This feature is restored since [https://steamcommunity.com/games/362890/announcements/detail/1715207569423590279 Xen Engine update].}}
|dx9=1}}
|dx9=1}}
{{MatParam|$depthblendscale|float|<code>$depthblendscale</code> (default {{=}} 50) determines the extent to which the particles should be softened: low values soften less but lead to visible color banding along edges, while high values soften more but lead to very obvious opacity falloff. {{note|The depth blend effect is limited by the very short 128-unit range of the depth buffer. Beyond this distance, it has no effect. This may be different in games or mods with an increased depth buffer range, although precision may be an issue.}}|dx9=1}}
{{MatParam|$depthblendscale|float|<code>$depthblendscale</code> (default {{=}} 50) determines the extent to which the particles should be softened: low values soften less but lead to visible color banding along edges, while high values soften more but lead to very obvious opacity falloff. {{note|The depth blend effect is limited by the very short 128-unit range of the depth buffer. Beyond this distance, it has no effect. This may be different in games or mods with an increased depth buffer range, although precision may be an issue.}}|dx9=1}}

Revision as of 15:13, 6 May 2025