CompileNoLight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(I could also see it being used for a fullbright mirror)
(→‎Syntax: not a feasible solution, because $lightmap can't be defined explicitly in engine versions that support PPL files)
Line 10: Line 10:


     %compileNoLight                        1
     %compileNoLight                        1
{{tip|In {{src13mp}}'s [[VertexLitGeneric]], a similar effect can be applied on models by assigning {{code|vgui/white}} to {{cmd|$lightmap}}.}}


[[Category:Material System]]
[[Category:Material System]]
[[Category:Shader parameters]]
[[Category:Shader parameters]]

Revision as of 13:12, 19 March 2025

When this parameter is added to materials, it will tell VRAD to not compile a Lightmap page for that material, which saves compile time. Valve introduced this parameter with Alien Swarm, using it with tools/toolsnolight.vmt, the black areas you see in the levels.

Note.pngNote:This parameter is also available in Source 2013.


Useful if you need features from shaders such as LightmappedGeneric or LightmappedReflective which are not present in UnlitGeneric.

Syntax

   %compileNoLight                         1