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

Bug:Doesn't actually skip drawing the faces, but instead acts like an
[citation needed])
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) mNo edit summary |
||
| Line 6: | Line 6: | ||
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. | ||
{{bug|Doesn't actually skip drawing the faces, but instead acts like an {{cmd|$alphatest}} texture that is completely transparent. | {{bug|Doesn't actually skip drawing the faces, but instead acts like an {{cmd|$alphatest}} texture that is completely transparent.|tested={{dods}}{{cn}}}} | ||
== Example == | == Example == | ||
Revision as of 09:01, 14 September 2024
$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.
$alphatest texture that is completely transparent. (tested in: Example
VertexLitGeneric
{
$no_draw 1
}