Commit Graph

23 Commits

Author SHA1 Message Date
Jarrod Doyle 9f5a90358c
Dynamically grow lightmap layers
This can be a huge memory saving on large maps. For example TPOAIR M2 goes from ~3gb of RAM to ~500mb
2025-01-12 11:49:26 +00:00
Jarrod Doyle 5beba9f9f4
Handle dynamic lights correctly 2025-01-11 17:57:52 +00:00
Jarrod Doyle b41d73c0e3
Fix #9: Blocks vision polys always cast shadows 2024-12-26 17:39:24 +00:00
Jarrod Doyle 40ea7cce0e
Parse per cell fog/ambient zones 2024-12-26 17:10:41 +00:00
Jarrod Doyle 9c71529d8e
Add layer range check on AddLight 2024-12-23 17:42:03 +00:00
Jarrod Doyle 2a75e016ef
Fixed underpowered 16 bit lighting 2024-12-10 21:00:39 +00:00
Jarrod Doyle ca3dfa677f
Add basic 16bit lm writing 2024-12-10 20:06:03 +00:00
Jarrod Doyle c162a5028d
Fix incorrect anim light map layering 2024-10-27 09:21:19 +00:00
Jarrod Doyle 3df1b728e6
Simplify light strength ratio calculation 2024-10-27 08:54:52 +00:00
Jarrod Doyle 13f822673a
Make light indices a list 2024-10-06 10:56:17 +01:00
Jarrod Doyle 6d665302d2
Make Lightmap a class and add AddLayer method 2024-10-05 18:13:30 +01:00
Jarrod Doyle 1f05663460
Add dummy sunlight source to light table 2024-10-05 17:36:12 +01:00
Jarrod Doyle dff2a9da2c
Add comment about sunlight 2024-10-05 16:35:11 +01:00
Jarrod Doyle 0a4dcc6de0
Clear cell anim light palette 2024-10-05 16:27:35 +01:00
Jarrod Doyle ab738203d6
Reset lighting table and lightmaps 2024-10-05 14:52:09 +01:00
Jarrod Doyle ea72c3af4a
Make LightmapInfo a class 2024-10-05 14:51:31 +01:00
Jarrod Doyle 013a3b845a
Make Cell and LightTable classes 2024-10-05 14:35:07 +01:00
Jarrod Doyle b9eae0e437
Split lightmap pixels array into layers 2024-10-04 18:49:37 +01:00
Jarrod Doyle 9251685d26
Handle subtractive lights 2024-09-29 14:46:46 +01:00
Jarrod Doyle bcc60eff52
Add BSP tree and LightTable parsing 2024-09-27 17:42:28 +01:00
Jarrod Doyle dcecc33bcd
Handle HDR and light strength multiplication in AddLight 2024-09-26 12:04:58 +01:00
Jarrod Doyle 4bc55b9130
Add RendParams and writers for each chunk 2024-09-22 11:14:34 +01:00
Jarrod Doyle 27b52f32d8
Add LGS project (from TMV) 2024-09-20 16:28:44 +01:00