light_projected

From Valve Developer Community
Jump to navigation Jump to search
This article or section is a stub. You can help by expanding it.

light_projected is an internal point entity available in VRAD++ VRAD++. A projected texture, which is baked into the lightmap. This entity is renamed to light_spot after compilation to allow dynamic toggling, leaving light_projected in an original_classname KV.

Keyvalues

Texture Name (texturename) <texture>
What texture to use, omitting the file extension. The light will be multiplied by the alpha channel (0 opacity = no light).
Icon-Important.pngImportant: This is a VTF, not a VMT!
Note.pngNote: Other Keyvalues / Inputs / Outputs are same as light_spot.

FGD Code

@PointClass base(light_spot) lightprop("models/editor/spot.mdl") lightcone() sphere(_fifty_percent_distance) sphere(_zero_percent_distance) = light_projected :
    "An invisible and directional spotlight that projects a texture, similar to env_projectedtexture but lightmapped"
[
    texturename(string) : "Texture Name" : "effects/flashlight001" : "Texture to project (VTF, not VMT!)"
]