Skip to content

Custom Light Colors

roxya edited this page Mar 10, 2022 · 1 revision

ClassicUO supports custom light colours in the form of RGB lights and Hue lights, configured by text files. This feature is intended for shards who wish to distribute ClassicUO without modifying the lighting code.

Assigning light colours to items

Item assignment is done in ClassicUO\Data\Client\lights.txt. You can assign either an RGB light or a Hue light.

# FORMAT
# ITEM_ID LIGHT_SHADER_ID

0xE31 H2731       <-- Hue 2731
0xEFA 35          <--- RGB light 35

Example of a hue light:

huelight

RGB Lights

RGB lights are defined by an RGB colour and a set of curves, same as the original lights. https://roxya.github.io/CUOLightShaderTester/ shows how they work.

RGB lights are defined in ClassicUO\Data\Client\lightshaders.txt:

# FORMAT
# ID RGB R_CURVE G_CURVE B_CURVE
# HARD LIMIT IS 63

1 00FF00 Standard A Standard
2 7F7FFF Standard Standard Standard
6 FF00FF B
10 3F3FFF

The curve definition can be omitted, or a single curve can be specified to apply to each colour channel (red, green, and blue).

Example of a custom RGB light BDFFD6 A A E

image

The following standard RGB lights are hard coded into the client but can be overridden if desired.

ID Type
1 Green (small)
2 Blue
6 Blue (dark)
10 Blue (bright)
20 Green
30 Orange
31 Orange (small)
32 Purple
40 Red
50 Yellow
60 Yellow (small)
61 Yellow (medium)
62 White (small)
63 White (small, solid)
64 White (halo)