Info dlightmap update: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{cleanup|english}}
{{CDA|CDLightmap_Update|CBaseEntity|}}  
{{This is a|point entity|name=info_dlightmap_update|game=Black Mesa|sprite=Info_target.png}} This entity allows or disallows lightmap to be changed while baked lights toggling. If enabled - lightmap can be changed. If disabled - lightmap doesn't change, although models still shows lighting changes. For example, if this entity enabled and you turn on/off {{ent|light_spot}}, you can see how it turning on/off, but if this entity disabled - you will not see any changes when you turn on/off {{ent|light_spot}} (with exception of models lighting).
{{This is a|point entity|name=info_dlightmap_update|game=Black Mesa|sprite=Info_target.png}} This entity allows or disallows lightmap to be changed while baked lights are turning on or off. If it is enabled - lightmap can be changed. If it is disabled - lightmap cannot be changed. Despite this, dynamic models still can show lighting changes.


Used for optimization, although now considered obsolete as all switchable lights have been replaced with [[NewLight Point|new lights]] to reduce map size and to make load times better.
It was used for optimization before [[newLight_Point|new light]] entities was added. Now it is considered obsolete as all switchable lights have been replaced with new light entities to reduce map size and to make load times better.


{{codenote |Represented by class <code>CDLightmap_Update</code>.}}
{{important|This entity prevents {{ent|light_dynamic}} from updating on [[lightmap]] as well {{only|{{bms12}}}}.}}
{{important|This entity prevents {{ent|light_dynamic}} from updating on [[lightmap]] as well.}}
{{back |Black Mesa Level Creation}}
 
== Keyvalues ==
{{KV Targetname}}


== Inputs ==  
== Inputs ==  
Line 16: Line 11:


<gallery mode=nolines widths=620px heights=450px>
<gallery mode=nolines widths=620px heights=450px>
File:idlu1.jpg|When this entity is enabled and you toggle the light on.
File:idlu1.jpg|When this entity is enabled and the light turns on.
File:idlu2.jpg|When this entity is disabled and you toggle the light on.
File:idlu2.jpg|When this entity is disabled and the light turns on.
</gallery>
</gallery>

Revision as of 05:49, 27 May 2025

C++ Class hierarchy
CDLightmap_Update
CBaseEntity
Info target.png

info_dlightmap_update is a point entity available in Black Mesa Black Mesa. This entity allows or disallows lightmap to be changed while baked lights are turning on or off. If it is enabled - lightmap can be changed. If it is disabled - lightmap cannot be changed. Despite this, dynamic models still can show lighting changes.

It was used for optimization before new light entities was added. Now it is considered obsolete as all switchable lights have been replaced with new light entities to reduce map size and to make load times better.

Icon-Important.pngImportant:This entity prevents light_dynamic from updating on lightmap as well (only in Black Mesa (mod)).

Inputs

Enable <void>
Allows lightmap to be changed.
Disable <void>
Disallows lightmap to be changed.