Natural Selection 2 and especially the Spark Engine have a huge work on lightning material.
Beware : there is a Special Group called "Low Lights" that is activated depending on you Video Settings (see https://steamcommunity.com/sharedfiles/filedetails/?id=351327660). If you don't have that "Low Lights" layer, the console will indicate a message : "No Low Light Mode for this map"
Basic Entities :[]
Light_point[]
Classic Light point
Light_spot[]
Directional Light
Light_ambient[]
Define a color per axis direction (left, right, up, down, front, back) based on a radius from the entity, it won't cast shadows or be otherwise occluded by objects.
In source (Half-Life 2) light_environment used the skybox tool texture to cast light, in spark this can be done at any point in the map and doesn't require the skybox. Ambient lights are the cheapest lights in spark
Flickering Lights[]
You can use cinematics for Flickering Light, example :
cinematics/environment/descent/descent_energyflow_lightflash.cinematic
Be aware that Cinematic will deactivate the possibility for light to be triggered by power_point
r_lights[]
r_decals is a tool for ingame but it's currently deactivated in build 327
Example lights :[]
Here is some example lights digged in ns2_eclipse (Note each prop has 2 lights) :
Prop Name | Light type | Color | Intensity | Max Distance | Inner Angle | Outer Angle | Atmospheric Density | Cast Shadow | Shadow Fade rate | Specular |
eclipse_main_area_a_light | light_point | 239; 206; 107 | 21 | 22 | FALSE | 0,25 | FALSE | |||
eclipse_main_area_a_light | light_spot | 239; 206; 107 | 10 | 277 | 22,5 | 55 | 0 | TRUE | 0,01 | TRUE |
eclipse/eclipse_hallway_04_lamp | light_point | 255; 128; 64 | 30 | 25 | FALSE | 0,25 | FALSE | |||
eclipse/eclipse_hallway_04_lamp | light_spot | 255; 128; 64 | 10 | 418 | 30 | 50 | 0 | TRUE | 0,25 | TRUE |
biodome/biodome_lights_02_a_on | light_point | 128; 128; 192 | 50 | 57 | FALSE | 0,25 | FALSE | |||
biodome/biodome_lights_02_a_on | light_spot | 128; 128; 192 | 15 | 280 | 35 | 60 | 0 | TRUE | 0,1 | TRUE |
biodome/biodome_lights_01_str_01b | light_point | 100; 175; 255 | 50 | 50 | FALSE | 0,25 | TRUE | |||
biodome/biodome_lights_01_str_01b | light_spot | 100; 175; 255 | 65 | 325 | 25 | N/A | 0,03 | FALSE | 0,25 | TRUE |
Spark Editor - Maps • Spark Editor • Spark Game Entity • Spark Entity List • Spark Decals • Spark Custom Materials • Spark Custom Skybox • Spark Lights • Spark Sounds • Valve Hammer to Spark • Spark Troubleshooting • Spark Beginner Tricks • Spark Editor Final Checklist