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

Bug:Doesn't actually skip drawing the faces, but instead acts like an $alphatest texture that is completely transparent. (tested in
) [todo tested in ?]
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
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]]. | ||
{{bug|Doesn't actually skip drawing the faces, but instead acts like an {{cmd|$alphatest}} texture that is completely transparent. (tested in {{dods}}) }} | |||
== Example == | == Example == | ||
<source lang lua> | <source lang=lua> | ||
VertexLitGeneric | VertexLitGeneric | ||
{ | { |
Revision as of 14:22, 8 January 2024


Warning: Display title "<span class="monospaced" style="font-family:monospace, monospace">$no_draw</span>" overrides earlier display title "$no draw".
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.


Example
VertexLitGeneric
{
$no_draw 1
}