$nocull: Difference between revisions
Jump to navigation
Jump to search
Note:Has no effect on world brushes (so tie each one to func_detail).
Bug:Cannot be used with
No edit summary |
Deity Link (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
}} | }} | ||
Makes the material appear on the reverse side of the surface it is applied to. Generally only useful when used in conjunction with <code>[[$translucent]]</code> or <code>[[$alpha]]</code>. | Makes the material appear on the reverse side of the surface it is applied to. Generally only useful when used in conjunction with <code>[[$translucent]]</code> or <code>[[$alpha]]</code>. | ||
{{note|Has no effect on [[world brush]]es (so tie each one to [[func_detail]]).}} | {{note|Has no effect on [[world brush]]es (so tie each one to [[func_detail]]).}} | ||
{{bug|Cannot be used with <code>$translucent</code> on [[model]]s. Use <code>[[$alphatest]]</code> instead.}} | {{bug|Cannot be used with <code>$translucent</code> on [[model]]s. Use <code>[[$alphatest]]</code> instead.}} | ||
==VMT Syntax and Examples== | |||
$nocull <[[bool]]> | |||
[[LightmappedGeneric]] | |||
{ | |||
[[$basetexture]] glass\window001a | |||
'''$nocull 1''' | |||
} | |||
[[VertexLitGeneric]] | |||
{ | |||
[[$basetexture]] models\items\medkit | |||
'''$nocull 1''' | |||
} | |||
[[VertexLitGeneric]] | |||
{ | |||
[[$basetexture]] models\props_2fort\blue_window001_glass | |||
[[$alphatest]] 1 | |||
'''$nocull 1''' | |||
} | |||
[[Category:List of Shader Parameters|N]] | [[Category:List of Shader Parameters|N]] | ||
[[Category:English]] | [[Category:English]] |
Revision as of 01:38, 13 June 2011
Template:Otherlang2
Makes the material appear on the reverse side of the surface it is applied to. Generally only useful when used in conjunction with $translucent
or $alpha
.


$translucent
on models. Use $alphatest
instead. [todo tested in ?]VMT Syntax and Examples
$nocull <bool>
LightmappedGeneric { $basetexture glass\window001a $nocull 1 }
VertexLitGeneric { $basetexture models\items\medkit $nocull 1 }
VertexLitGeneric { $basetexture models\props_2fort\blue_window001_glass $alphatest 1 $nocull 1 }