lights.rad Last edited 1 year ago2022-09-20 11:56:59 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.
lights.rad is a text file that can be used to define textures as texture lights.

Each line of the file defines a texture, in the form texturename #R #G #B #brightness, where texturename is the name of the texture, #R #G #B is the color of the light in RGB format, and #brightness is the brightness value of the light. (Example: genericlight 255 255 255 1000 will make the genericlight texture produce a white light with a brightness of 1000).

During the compile process, RAD will seek this file in the following order: In addition to lights.rad, the same seeking algorithm is performed with mapname.rad where "mapname" is the name of the map being compiled. If the -lights foo.rad command-line argument is passed then a third run is made with foo.rad.

An in-map equivalent which is read last is info_texlights.

In the case of duplicate entries, the latest one takes priority over the first one (if you have LIGHT1 255 0 0 which is red and LIGHT1 0 255 0 which is green, green takes over red).

Comments

You must log in to post a comment. You can login or register a new account.