DecalInfo (Material global keyword)

Description

Used in the materials for decal sprites to set how long the decal stays and how it should fade out. (An example of decal sprites are bullet marks.)

Usage

In the global section of your material shader type…

decalInfo <stay_length> <fade_length> [<start_rgba> <end_rgba>]

Parameters

stay_length
The amount of seconds the decal should stay before starting to fade.

fade_length
The amount of seconds it takes for the decal to fade away.

start_rgba
RGBA colouring the decal will use when spawned.

end_rgba
the RGBA colouring the decal will fade to.

Notes

The RGBA colours used in start_rgba will be used for stay_length seconds, after that it will fade to end_rgba within fade_length seconds.

The RGBA values are written between parentheses and consist of 4 values. The values are seperated by spaces. (See rgba .)

Example: (opaque white and transparent black)

 (1 1 1 1) (0 0 0 0)