Info texlights (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 3: Line 3:


== Entity description ==
== Entity description ==
It works similarly to a [[lights.rad]] file by allowing textures to emit light. Texture lights are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light. For example, a keyvalue pair with the key {{mono|LIGHT1}} and the value {{mono|255 0 0 200}} would make the texture ''LIGHT1'' emit a red light. Alternatively, a single number can be used, in which case the light color is automatically determined by the average color of the texture.
It works similarly to a [[RAD file]] by allowing textures to emit light. Texture lights are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light. For example, a keyvalue pair with the key {{mono|LIGHT1}} and the value {{mono|255 0 0 200}} would make the texture ''LIGHT1'' emit a red light. Alternatively, a single number can be used, in which case the light color is automatically determined by the average color of the texture.
{{bug|Some compilers ignore specified the color value and always use the average color of the texture. If this happens, use [[light_surface]] or a [[RAD file]].}}


[[Category:Entities]]
[[Category:Entities]]

Revision as of 11:15, 7 August 2023

Stub

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

Half-Life info_texlights is a point entity available with Zoner's Half-Life Tools and modern forks such as Vluzacn's Half-Life Tools.

Entity description

It works similarly to a RAD file by allowing textures to emit light. Texture lights are defined through its key values, where the key is the name of the texture to emit light from, and the value is the color and intensity of the light. For example, a keyvalue pair with the key LIGHT1 and the value 255 0 0 200 would make the texture LIGHT1 emit a red light. Alternatively, a single number can be used, in which case the light color is automatically determined by the average color of the texture.

Icon-Bug.pngBug:Some compilers ignore specified the color value and always use the average color of the texture. If this happens, use light_surface or a RAD file.  [todo tested in ?]