CompileNoLight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Syntax: not a feasible solution, because $lightmap can't be defined explicitly in engine versions that support PPL files)
No edit summary
Line 1: Line 1:
{{subpage|[[Material map compile flags]]}}
{{subpage|[[Material map compile flags]]}}
{{since|{{as}}{{src13}}}}
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 <code>tools/toolsnolight.vmt</code>, the black areas you see in the levels.
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 <code>tools/toolsnolight.vmt</code>, the black areas you see in the levels.
{{Note|This parameter is also available in Source 2013.}}





Revision as of 13:13, 19 March 2025

(in all games since Alien SwarmSource 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.

Syntax

   %compileNoLight                         1