Commit Graph

163 Commits

Author SHA1 Message Date
Jarrod Doyle 39dbede993
More accurate object casting 2024-12-07 18:47:31 +00:00
Jarrod Doyle 1532a2750c
Almost there object casting 2024-12-07 18:28:39 +00:00
Jarrod Doyle 122bd2bfa7
Add immobile and static shadow props 2024-12-07 18:28:07 +00:00
Jarrod Doyle c96a42b883
Add JointPos prop 2024-12-07 17:08:01 +00:00
Jarrod Doyle 8cc64ae1e5
Parse model sub objects 2024-12-07 16:52:05 +00:00
Jarrod Doyle 84c54ce280
Use AABB for a tighter cull of cell light indices 2024-11-29 17:24:03 +00:00
Jarrod Doyle b3a71e6827
Add lightmapped water 2024-11-04 18:39:10 +00:00
Jarrod Doyle 1d96c06032
Add water surfaces to the Embree scene and surface type map 2024-11-04 18:09:39 +00:00
Jarrod Doyle b47a7536c4
Ray traces now continue through any water they hit (unless the water surface is the target) 2024-11-04 18:08:54 +00:00
Jarrod Doyle e6ca952962
Add surface type map 2024-10-30 08:03:26 +00:00
Jarrod Doyle fe100bb938
Change softness mode switch statement to expression 2024-10-29 18:14:44 +00:00
Jarrod Doyle f6bcce9778
Add nine point shadow softness support 2024-10-29 18:13:04 +00:00
Jarrod Doyle 99697180cd
Add support for most of the shadow softness settings 2024-10-29 18:01:50 +00:00
Jarrod Doyle ff91ad567b
Add LmParams parsing 2024-10-29 17:49:03 +00:00
Jarrod Doyle ca017e3f7b
Removed debug print 2024-10-29 07:45:03 +00:00
Jarrod Doyle f5fa373519
Replace System.CommandLine with CliFx 2024-10-29 07:43:32 +00:00
Jarrod Doyle 350a891118
Add basic command line interface 2024-10-28 20:40:06 +00:00
Jarrod Doyle 0ea00fa109
Refactor to LightMapper class 2024-10-28 20:03:20 +00:00
Jarrod Doyle ba31c21b0d
Add fake quad lighting (multisampling) 2024-10-28 19:07:48 +00:00
Jarrod Doyle fdc84a0d81
Clean up TraceRay function and remove old code (should have been in last commit tbh) 2024-10-28 17:50:08 +00:00
Jarrod Doyle 19882dcff2
Even better cell edge shadow clip handling 2024-10-28 08:06:24 +00:00
Jarrod Doyle 175be69b6d
Make TraceRay more generic 2024-10-28 07:42:26 +00:00
Jarrod Doyle 1282c6be19
Better handling of clipped shadows 2024-10-28 07:38:37 +00:00
Jarrod Doyle 926497b2c2
Use ToLightData on brush lights 2024-10-27 16:33:02 +00:00
Jarrod Doyle 94b8af0f7f
Move light strength calculation to Light class 2024-10-27 15:15:59 +00:00
Jarrod Doyle 025f4d0508
Rename Light fields 2024-10-27 15:12:19 +00:00
Jarrod Doyle 50f3c1e9e1
Move Light to own file 2024-10-27 15:10:28 +00:00
Jarrod Doyle b263bdd77e
Fix incorrect light table 2024-10-27 12:26:01 +00:00
Jarrod Doyle c8e13a7f7b
Split out Light gathering a bit 2024-10-27 10:23:15 +00:00
Jarrod Doyle a9d2d2e193
Code cleanup 2024-10-27 09:48:21 +00:00
Jarrod Doyle c162a5028d
Fix incorrect anim light map layering 2024-10-27 09:21:19 +00:00
Jarrod Doyle 0a41d78cac
Simplify some loops 2024-10-27 08:57:59 +00:00
Jarrod Doyle 3df1b728e6
Simplify light strength ratio calculation 2024-10-27 08:54:52 +00:00
Jarrod Doyle ef95b07926
Remove double dict access when adding object property 2024-10-27 08:39:17 +00:00
Jarrod Doyle 466b7a4c0b
Change GetProperty return to be nullable 2024-10-27 08:38:47 +00:00
Jarrod Doyle 7ff91b2fda
Remove infinite radius sphere special casing 2024-10-27 08:14:47 +00:00
Jarrod Doyle 0c26aa1f0e
Extract cell light indices setting to method 2024-10-27 08:07:15 +00:00
Jarrod Doyle cd13cee48f
Move colour conversion to separate class 2024-10-27 07:53:58 +00:00
Jarrod Doyle 940c78e1cf
Somewhat working cell light list setting 2024-10-06 10:57:18 +01:00
Jarrod Doyle 13f822673a
Make light indices a list 2024-10-06 10:56:17 +01:00
Jarrod Doyle 5fcf9db59c
Add sphere to sphere intersection test 2024-10-06 10:55:56 +01:00
Jarrod Doyle 1d32b3ef7b
Set light table index on brush lights 2024-10-05 19:19:45 +01:00
Jarrod Doyle 5d72ba546e
Extract anim mapping update to method 2024-10-05 19:09:16 +01:00
Jarrod Doyle 55c9c2cd31
Set AnimCellMaps and update AnimLight props 2024-10-05 19:06:16 +01:00
Jarrod Doyle 7c733fc9fd
Set cell light palette, lightmap bitmasks, and layers 2024-10-05 18:14:25 +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 0bcf24f640
Remove unneeded using directives 2024-10-05 15:00:47 +01:00