$nodecal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Sometimes you don't want NoDecal, like on glass.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{subpage|[[Material map compile flags]]}}
{{code|$nodecal}} is a shader parameter for textures in Source games.
{{code|$nodecal}} is a shader parameter for textures in Source games.


{{code|$nodecal 1}} will stop bullet holes and other decals from applying to the textures flagged with it in their [[VMT]]s.
{{code|$nodecal 1}} will stop bullet holes and other decals from applying to the textures flagged with it in their [[VMT]]s.


This is useful for materials that use [[$translucent]]{{why}}.
This is useful for certain materials that use [[$translucent]] so that bullet holes and other decals do not appear to be floating in the air on fully transparent portions of the material.


{{modernImportant|This is a [[material map compile flag]] when used on materials designed for [[brushes]] and [[displacements]], being written to the [[BSP (Source)|BSP]] as {{code|[[BSP flags (Source)|SURF_NODECALS]]}}.<br>It is a regular parameter when used on materials designed for [[models]].}}
[[Category:Shader parameters|n]]
[[Category:Shader parameters|n]]

Latest revision as of 10:40, 29 August 2025

$nodecal is a shader parameter for textures in Source games.

$nodecal 1 will stop bullet holes and other decals from applying to the textures flagged with it in their VMTs.

This is useful for certain materials that use $translucent so that bullet holes and other decals do not appear to be floating in the air on fully transparent portions of the material.