Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.

$no draw/en

From Valve Developer Community
Jump to: navigation, search

Stub

This article or section is a stub. You can help by adding to 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.

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)

Example

VertexLitGeneric
{
$no_draw 1
}