CompileNonSolid: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{stub}}
{{subpage|[[Material map compile flags]]}}
{{stub}}{{DISPLAYTITLE:%CompileNonSolid}}
Add this [[VMT]] parameter to make brushes non-solid. When compiling the map, [[VBSP]] will flag the brush with this material as non-solid. Useful for foliage or light effects.
Add this [[VMT]] parameter to make brushes non-solid. When compiling the map, [[VBSP]] will flag the brush with this material as non-solid. Useful for foliage or light effects.


Unlike a brush tied to a [[func_illusionary]], a [[worldspawn]] brush with a {{code|%CompileNonSolid}} face does not count as an [[edict]].
Unlike a brush tied to a [[func_illusionary]], a [[worldspawn]] (or [[func_detail]]) brush with {{code|%CompileNonSolid}} does not count as an [[edict]].


Equivalent to the {{code|NOCLIP}} [[tool textures (GoldSrc)|tool texture]] in {{goldsrc|4}}.
{{important|'''''All''''' faces of the brush must be textured with a nonsolid material for the brush to be nonsolid.
{{tip|Use {{code|toolsblocklight}} as a [[nodraw]] texture for nonsolid brushes (counts as [[%CompileDetail|detail]]), or create a duplicate of {{code|toolsnodraw}} with {{code|%CompileNonSolid}} (naming it something like {{code|toolsnoclip}}).}} }}
{{bug|hidetested=1|{{l4d2|4.1}} The material will be invisible if used on a brush with solid contents.}}


{{bug|Identical to {{code|[[%CompileNoDraw]]}} in {{l4d2|4.1}}.}}
[[Category:Shader parameters]]
{{modernConfirm|Do all brush faces need to be textured with non-solid materials, or will one face being textured properly result in disabling the brush's collision? (BSP requires all sides of a brush to either have or not have collision, due to how clipnodes work.)}}
 
[[Category:List of Shader Parameters]]

Latest revision as of 06:14, 20 May 2025

Stub

This article or section is a stub. You can help by expanding it.

Add this VMT parameter to make brushes non-solid. When compiling the map, VBSP will flag the brush with this material as non-solid. Useful for foliage or light effects.

Unlike a brush tied to a func_illusionary, a worldspawn (or func_detail) brush with %CompileNonSolid does not count as an edict.

Icon-Important.pngImportant:All faces of the brush must be textured with a nonsolid material for the brush to be nonsolid.
Tip.pngTip:Use toolsblocklight as a nodraw texture for nonsolid brushes (counts as detail), or create a duplicate of toolsnodraw with %CompileNonSolid (naming it something like toolsnoclip).
Icon-Bug.pngBug:Left 4 Dead 2 Left 4 Dead 2 The material will be invisible if used on a brush with solid contents.