$nocull: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Much more accurate description of what it actually does.)
Line 2: Line 2:
|fr=$nocull:fr
|fr=$nocull:fr
}}
}}
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>.
Disables the backface culling, resulting in triangles showing from both sides. It is used to allow for infinitively thin dual sided objects without duplicating the triangles with reversed vertex order.


{{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]]).}}

Revision as of 06:48, 18 February 2014

Template:Otherlang2 Disables the backface culling, resulting in triangles showing from both sides. It is used to allow for infinitively thin dual sided objects without duplicating the triangles with reversed vertex order.

Note.pngNote:Has no effect on world brushes (so tie each one to func_detail).
Icon-Bug.pngBug:Cannot be used with $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
}