%CompileNoLight

From Valve Developer Community
(Redirected from %CompileNoLight)
Jump to navigation Jump to search

(in all games since Alien Swarm Source 2013) 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.

Useful if you need features from shaders such as LightmappedGeneric or LightmappedReflective which are not present in UnlitGeneric. Unnecessary when using shaders that are never lightmapped, as lightmaps will not be generated for them regardless.

Syntax

   %compileNoLight                         1