$lightmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Also in gmod as of recently)
(Works on any MDL, but only prop_static ents can get them from VRAD.)
Line 1: Line 1:
{{stub}}
{{stub}}
'''$lightmap''' is a [[material]] [[shader]] parameter available in {{src13mp|4.1}} and {{gmod|4.1}} for <code>[[VertexLitGeneric]]</code>. It defines a lightmap to be used instead of the per-vertex lighting used by [[prop_static]]. 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]].
'''$lightmap''' is a [[material]] [[shader]] parameter available in {{src13mp|4.1}} and {{gmod|4.1}} for <code>[[VertexLitGeneric]]</code>. It defines a lightmap to be used to light the [[MDL (Source 1)|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 {{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.
{{warning model lightmaps}}
{{warning model lightmaps}}
{{todo|How to convert [[PPL]] lightmap files generated by VRAD to VTF?}}

Revision as of 17:28, 30 July 2023

Stub

This article or section is a stub. You can help by expanding it.

$lightmap is a material shader parameter available in Source 2013 Multiplayer Source 2013 Multiplayer and Garry's Mod 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.

Note.pngNote:Archived rest of page history of page template:warning model lightmaps
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
Todo: How to convert PPL lightmap files generated by VRAD to VTF?