Commit graph

4717 commits

Author SHA1 Message Date
Raildex
29ce1228e1 Added Function to spawn dynamic spot lights
Fixing some lighting discrepancies as a byproduct
2022-07-19 18:18:01 +02:00
Lwmte
fe965bfe60 Fix merge 2022-07-18 23:44:41 +03:00
Lwmte
64d63d1f56 Merge branch 'ten_beta' into generalized_shadow_map 2022-07-18 23:35:34 +03:00
Lwmte
d3260e42ef Fix desaturation of items 2022-07-18 22:51:34 +03:00
Lwmte
21eddd483c Don't copy staticInfo on checks 2022-07-18 22:12:42 +03:00
Lwmte
818c31abdf Implement clipping by static mesh frustum 2022-07-18 21:56:27 +03:00
Lwmte
bc84a110b2 Implement clipping by draw distance 2022-07-18 21:56:11 +03:00
Lwmte
9299ef61a9 Don't copy staticInfo on checks 2022-07-18 21:46:05 +03:00
Lwmte
772e518119 Don't collect lights for statics with static lighting 2022-07-18 19:31:37 +03:00
Lwmte
2138a571cd Fix crash with transparent statics 2022-07-18 18:18:34 +03:00
Lwmte
7d89b2641f Account for inner spotlight cone when calculating attenuation 2022-07-18 16:18:04 +03:00
Lwmte
af7ca4cb10 Fix #399 2022-07-18 13:41:12 +03:00
Lwmte
30c08d3867 Output to console even in release mode, fix linker warnings 2022-07-18 09:58:58 +03:00
Lwmte
ff5f2156f7 Properly process alt+enter hotkey 2022-07-18 09:46:32 +03:00
Lwmte
3d76e32e21 Fix spotlight formula again 2022-07-17 22:40:56 +03:00
Lwmte
fc60217995 Fix spotlight decoding formula 2022-07-17 20:06:12 +03:00
Lwmte
14638139de Merge pull request #601 from MontyTRC89/generalized_light_collection
Static and dynamic light models for both moveables and statics
2022-07-17 18:52:28 +03:00
Lwmte
f768fd03bd Use separate shadow modes for different kinds of objects 2022-07-17 18:43:40 +03:00
Lwmte
5a025939c9 Merge branch 'ten_beta' into generalized_light_collection 2022-07-17 18:14:54 +03:00
Lwmte
9a32b99ae8 Merge branch 'ten_beta' into generalized_shadow_map 2022-07-17 18:14:38 +03:00
Lwmte
103348b868 Sort out problems with CastsShadow flag 2022-07-17 18:13:42 +03:00
Lwmte
ed2c66416a Fix bug with transparency and anim transforms 2022-07-17 17:29:34 +03:00
Lwmte
94bab13cde Fix typo 2022-07-17 17:17:08 +03:00
Lwmte
88d02c75ee Merge branch 'generalized_light_collection' into generalized_shadow_map 2022-07-17 16:15:34 +03:00
Lwmte
37a14a9985 Fix spotlight shadow cast 2022-07-17 16:13:12 +03:00
Lwmte
5ffbb371a9 Implement light collection radius 2022-07-17 16:00:02 +03:00
Lwmte
a28db49b23 Remove stray call to RenderShadowMap 2022-07-17 15:43:38 +03:00
Lwmte
dc3e37d73d Remove some references to ItemInfo from DrawAnimatingItem 2022-07-17 15:38:54 +03:00
Lwmte
3885fc5d4a Update Renderer11Draw.cpp 2022-07-17 15:31:12 +03:00
Lwmte
fe8d1f1e69 Split shadow rendering code in separate function 2022-07-17 15:29:31 +03:00
Lwmte
c5bff0293d Fix disappearing objects 2022-07-17 15:13:25 +03:00
Lwmte
d0b080b3ce Merge branch 'generalized_light_collection' into generalized_shadow_map 2022-07-17 15:11:28 +03:00
Lwmte
718236d3bd Saturate vertex colors on later stage to allow proper glow effect 2022-07-17 14:58:15 +03:00
Lwmte
7370277603 Address several Raildex notes 2022-07-17 14:25:34 +03:00
Lwmte
c90bafbb97 Update Renderer11Draw.cpp 2022-07-17 13:47:46 +03:00
Lwmte
649c008af8 Fix merge 2022-07-17 13:40:48 +03:00
Lwmte
a072d4841f Update Renderer11Draw.cpp 2022-07-17 13:40:15 +03:00
Lwmte
6729427c47 Merge branch 'generalized_light_collection' into generalized_shadow_map 2022-07-17 13:38:46 +03:00
Lwmte
4a58976e7b Remove unnecessary parameter and rename function 2022-07-17 13:33:58 +03:00
Lwmte
146d705c5a Remove unneeded field from RendererStatic 2022-07-17 13:28:57 +03:00
Lwmte
2cf2e355eb WIP 2022-07-17 13:20:16 +03:00
Lwmte
1e27a75864 Don't cast shadows from dynamic lights 2022-07-17 09:51:06 +03:00
Lwmte
4774698edb Fix intensity not initialized for dynamic lights 2022-07-17 04:34:18 +03:00
Lwmte
1ddf67bed3 Fix several more problems with lighting 2022-07-17 04:25:39 +03:00
Lwmte
91142658c4 Fix crashes 2022-07-17 04:20:45 +03:00
Lwmte
bf26eb12c8 Fix dynamic shadow rendering for Lara 2022-07-17 04:12:40 +03:00
Lwmte
a755ffc8e6 Update Renderer11Draw.cpp 2022-07-17 03:41:23 +03:00
Lwmte
871dd14717 Account for intensity value, correct spotlight formula 2022-07-17 03:16:48 +03:00
Lwmte
2345e34f51 Spotlight WIP 2022-07-17 00:51:17 +03:00
Lwmte
0e2f51ca35 Shatter harpoon bolt on death 2022-07-16 22:23:37 +03:00