Antilight

Casting Darkness
    light
    _color


Casting Darkness

ArghRad supports "antilight", or lights that cast darkness. These lights simply subtract light from the world. They can be quite useful for subtle lighting tweaks and artistic effects. For instance, they could be used to make a light-sapping "black hole" effect, or deepen the color of shadows, etc.

Antilights only subtract light of the same style. For example, a flickering antilight will only subtract light from other flickering lights. Triggered lights count as separate styles, so triggered antilights only affect other lights on the same trigger.

Antilighting is set through enhancements to the following standard lighting keywords:


 
 
light  brightness

location: light entity    version: 1.00  
brightness: < 0 (antilight),  > 0 (normal light) default: 200

A negative brightness value causes this light to cast darkness.

no example image example map
 

 
 
_color  r g b

location: light entity    version: 1.00  
r g b: standard rgb color (any value can be < 0) default: 1 1 1

The color of light affects which colors are subtracted. For example: an orange antilight "1 .5 0" subtracts red light, subtracts half as much green light, and ignores any blue light.

Any individual r g b value can also be negative. This allows mixing light and antilight in the same entity. Assuming brightness is positive, negative r g b values will subtract that color of light. For example: a color "1 0 -1" light adds red light, ignores green light, and subtracts blue light.

no example image example map