Files
jak-project/common
Jordan d04ac9d787 Time Of Day Colors for GLBs (#4111)
With help from @gratefulforest, I've implemented storing colours for
each time of day for meshes,
and updated the code to store 32 channel colours (8 times of day * 4
rgba channels).


https://github.com/user-attachments/assets/5d2fb82c-40b7-44ad-976f-acd5d4d57e1c

In addition, I've implemented a system @gratefulforest suggested which
makes adding different times of day
really easy for developers.
- If some times of day are missing, they use the closest time of day
that is defined, defaulting to the earlier of the two if there are two
equally closest defined times of day.
- If no times of day are defined, COLOR_0 is used, otherwise white is
used.

Log messages are concise and very informative:
```
[46:23:278] [info] Reading gltf mesh: /home/jakjm/git/jak-project/custom_assets/jak1/levels/test-zone/test-zone2.glb
[46:23:278] [warn] Plane missing some times of day, using sunrise:_EVENING, morning:_EVENING, noon:_TWILIGHT, afternoon:_TWILIGHT, sunset:_TWILIGHT, twilight:_TWILIGHT, evening:_EVENING, green sun:_EVENING
[46:23:278] [error] Cube.001 didn't have any colors, using white.
[46:23:278] [warn] Cube.002 had colors but no times of day, using COLOR_0.
[46:23:278] [warn] Cube.003 missing some times of day, using sunrise:_SUNRISE, morning:_SUNRISE, noon:_SUNRISE, afternoon:_SUNSET, sunset:_SUNSET, twilight:_SUNSET, evening:_SUNSET, green sun:_SUNRISE
[46:23:278] [warn] Cube.004 had colors but no times of day, using COLOR_0.
[46:23:278] [error] Cube.005 didn't have any colors, using white.
```

---------

Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
2026-09-16 19:54:08 -04:00
..
2025-04-12 15:59:13 -04:00
2026-07-27 22:28:28 +02:00
2025-04-12 15:59:13 -04:00
2025-04-12 15:59:13 -04:00
2026-07-27 22:28:28 +02:00
2026-09-16 19:54:08 -04:00