$lightmap: Difference between revisions
Jump to navigation
Jump to search
Tip:
VRAD has a -dumppropmaps option, which will create external TGA versions of the generated static prop lightmaps which can be converted to VTF and manually defined as a $lightmap.
Note:Archived rest of page history of page template:warning model lightmaps
Important:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
SirYodaJedi (talk | contribs) m (→VMT syntax) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
This parameter does not usually need to be added manually, as [[VRAD]] will generate model lightmaps automatically if {{mono|generatelightmaps}} is enabled for the [[prop_static]] and {{mono|-StaticPropLighting}} is enabled in [[VRAD]]. Nonetheless, it can still be added manually, such as for using a lightmap on a [[prop_dynamic]], or if a [[prop_static]] has multiple materials (as [[VRAD]] can only generate lightmaps for the first material. | This parameter does not usually need to be added manually, as [[VRAD]] will generate model lightmaps automatically if {{mono|generatelightmaps}} is enabled for the [[prop_static]] and {{mono|-StaticPropLighting}} is enabled in [[VRAD]]. Nonetheless, it can still be added manually, such as for using a lightmap on a [[prop_dynamic]], or if a [[prop_static]] has multiple materials (as [[VRAD]] can only generate lightmaps for the first material. | ||
{{tip|{{src13mp}} [[VRAD]] has a {{code|-dumppropmaps}} option, which will create external TGA versions of the generated static prop lightmaps which can be converted to VTF and manually defined as a {{mono|$lightmap}}.}} | {{tip|{{src13mp}} [[VRAD]] has a {{code|-dumppropmaps}} option, which will create external TGA versions of the generated static prop lightmaps which can be converted to VTF and manually defined as a {{mono|$lightmap}}.}} | ||
==VMT syntax== | ==VMT syntax== | ||
Line 18: | Line 16: | ||
}</nowiki> }} | }</nowiki> }} | ||
== Limitations and caveats == | |||
{{warning model lightmaps}} | |||
[[Category:List of Shader Parameters]] | [[Category:List of Shader Parameters]] |
Revision as of 07:26, 31 July 2023
$lightmap is a material shader parameter available in Source 2013 Multiplayer and
Garry's Mod for
VertexLitGeneric
. It defines a lightmap to be used to light the MDL model's material, instead of the per-vertex lighting used by prop_static or point lighting used by other models.
This parameter does not usually need to be added manually, as VRAD will generate model lightmaps automatically if generatelightmaps is enabled for the prop_static and -StaticPropLighting is enabled in VRAD. Nonetheless, it can still be added manually, such as for using a lightmap on a prop_dynamic, or if a prop_static has multiple materials (as VRAD can only generate lightmaps for the first material.


VMT syntax
$lightmap <texture>
Limitations and caveats

