$no draw: Difference between revisions
Jump to navigation
Jump to search

Confirm:Not on all shaders? Seems to not work on wireframe, since
SirYodaJedi (talk | contribs) No edit summary |
SirYodaJedi (talk | contribs) No edit summary |
||
| Line 4: | Line 4: | ||
{{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. | {{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]], or to have a material disappear in a specific skin. | 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. Note that the geometry is still loaded into memory; it only prevents it from rendering. | ||
{{confirm|Not on all shaders? Seems to not work on {{codelink|wireframe}}, since {{cmd|mat_wireframe}} causes the geometry to render.}} | {{confirm|Not on all shaders? Seems to not work on {{codelink|wireframe}}, since {{cmd|mat_wireframe}} causes the geometry to render.}} | ||
Latest revision as of 06:14, 31 October 2025
$no_draw is a material shader parameter available in all
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. Note that the geometry is still loaded into memory; it only prevents it from rendering.
mat_wireframe causes the geometry to render.Example
VertexLitGeneric
{
$no_draw 1
}