$no draw: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page $no draw to $no draw/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot under supervision.)
m (what the)
Line 1: Line 1:
{{langsp}}
{{langsp}}
{{DISPLAYTITLE:{{mono|$no_draw}}}}
{{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.
{{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.

Revision as of 14:13, 11 January 2024

English (en)Translate (Translate)

Stub

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

Template:Shaderparam 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)   [todo tested in ?]

Example

VertexLitGeneric
{
$no_draw 1
}