Skip to content

AlphaImage

The SHP file blended over the object as an area light.

Object light shape

Specification — Object light shape
Applies to
ObjectType and derived types
AircraftTypeBuildingTypeBulletTypeInfantryTypeOverlayTypeParticleSystemTypeParticleTypeSmudgeTypeTerrainTypeUnitTypeVoxelAnimType
File
rules.ini
Section
[<ObjectType ID>]
Value
string
When omitted
(empty)No light shape is loaded and the object contributes nothing to the lighting pass.

The value is a filename without its extension, and only a non-empty value is taken. The named <value>.SHP is loaded once with the rules and attached to each object of the type as it is placed on the map: the shape is centered on the object and its pixels are blended into the lighting buffer, brightening whatever is drawn underneath. The light is removed with the object it belongs to.

rules.ini
[MYLAMP] ; a BuildingType
AlphaImage=MYGLOW ; MYGLOW.SHP brightens the ground around it

Unlike the object’s own artwork, this shape is not selected through the Image ID — it is named here directly.

Animation light shape

Specification — Animation light shape
Applies to
AnimType
File
art.ini
Section
[<ObjectType ID>]
Value
string
When omitted
(empty)No light shape is loaded and the animation contributes nothing to the lighting pass.

An animation carries the same light shape on the same terms as any other object type, attached where the animation is placed and taken away with it, so the brightening lasts exactly as long as the animation plays.

See alsoImage