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

$no draw: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page $no draw/en to $no draw without leaving a redirect: Move en subpage to basepage)
mNo edit summary
Line 2: Line 2:


{{stub}}
{{stub}}
{{Shaderparam|$no_draw}} It is a setting that causes the material to not be drawn or rendered at all. Usually used to quickly hide parts of a model, without having to make a transparent texture.
{{this is a|shader parameter|name=$no_draw}} It is a setting that causes the material to not be drawn or rendered at all. Usually used to quickly hide parts of a model, without having to make a transparent texture.


Similar to [[%CompileNoDraw]], except this can be applied to models. This can be used as a workaround to the broken "Removemodel" on [[$lod]].
Similar to [[%CompileNoDraw]], except this can be applied to models. This can be used as a workaround to the broken "Removemodel" on [[$lod]], or to have a material disappear in a specific skin.


{{bug|Doesn't actually skip drawing the faces, but instead acts like an {{cmd|$alphatest}} texture that is completely transparent. (tested in {{dods}}) }}
{{bug|Doesn't actually skip drawing the faces, but instead acts like an {{cmd|$alphatest}} texture that is completely transparent. (tested in {{dods}}) }}

Revision as of 17:54, 27 July 2024

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

$no_draw is a material shader parameter available in all Source Source games. It is a setting that causes the material to not be drawn or rendered at all. Usually used to quickly hide parts of a model, without having to make a transparent texture.

Similar to %CompileNoDraw, except this can be applied to models. This can be used as a workaround to the broken "Removemodel" on $lod, or to have a material disappear in a specific skin.

Icon-Bug.pngBug:Doesn't actually skip drawing the faces, but instead acts like an $alphatest texture that is completely transparent. (tested in Day of Defeat: Source)   [todo tested in ?]

Example

VertexLitGeneric
{
$no_draw 1
}