Commit graph

9349 commits

Author SHA1 Message Date
Sezz
ab7e25aa7a Pass position reference instead of copy when collecting lights 2024-12-15 00:19:57 +11:00
Lwmte
19528ea3bd Fix hair vertices linking incorrectly in some cases 2024-12-14 12:25:50 +01:00
Lwmte
2f6114deba Disable camera interpolation when going from/to binoculars 2024-12-13 09:08:09 +01:00
Lwmte
6198975bea Don't unroll float loops, as they slow down game launch 2024-12-12 01:31:10 +01:00
Lwmte
bddc52f632 Optimize debris drawing 2024-12-11 19:04:41 +01:00
Lwmte
4fe20b2a92 Fix moving bridges again without breaking bridge tilts 2024-12-11 16:50:37 +01:00
Lwmte
e674b85268 Add puzzle/key items in DOZY mode only if shift is held 2024-12-11 01:34:54 +01:00
Lwmte
3e5a3609cc Fix #1508 2024-12-11 01:06:31 +01:00
Lwmte
c7a1440131 Adjust room lighting influence 2024-12-10 22:53:31 +01:00
Lwmte
11d9661d6b
Renderer enhancements (#1507)
* Implement light masking, merge shadow functions, precalculate radians for spotlights

* Update CHANGELOG.md

* Fixed spotlight shadow calculation

* Disable shadow pass if it is disabled in settings

* Move all step functions into appropriate mask blocks
2024-12-10 23:11:53 +02:00
Lwmte
0a2d82ab11 Revert "Less frequent updates to CalculateBounce"
This reverts commit 8d20d6f1ca.
2024-12-10 03:01:23 +01:00
Lwmte
8d20d6f1ca Less frequent updates to CalculateBounce 2024-12-09 09:40:57 +01:00
Lwmte
45f515c444 Update savegame.cpp 2024-12-09 02:59:39 +01:00
Lwmte
a71cf7bced Prevent loading of incorrect savegames 2024-12-09 02:46:26 +01:00
Lwmte
8da4d36b54 Update CHANGELOG.md 2024-12-09 01:37:06 +01:00
Lwmte
5df743ac9b Allow camera bounce during flybys 2024-12-09 01:36:50 +01:00
Lwmte
b582601abf Fixed original issue with weapon hotkeys available in binoculars or lasersight mode 2024-12-08 22:40:34 +01:00
Lwmte
9a241dbc80 Fix issues with timer 2024-12-08 19:15:26 +01:00
Lwmte
59ebbc9e11 Debranch vertex effects 2024-12-07 22:44:26 +01:00
Lwmte
d90c98cc60 Rollback DoDistanceFogForVertex 2024-12-07 21:59:23 +01:00
Lwmte
5d293cc75a Fix compile errors with latest VS 2024-12-07 13:09:12 +01:00
Lwmte
d96bf4ba8c Debranch fog calculations 2024-12-06 21:53:45 +01:00
Lwmte
15aee1c5b0 Don't collect shadow casting lights of unsupported types 2024-12-06 21:04:53 +01:00
Lwmte
87373b4c78 Fixed black rooms in case brightest light is not point or spot 2024-12-06 20:36:46 +01:00
Lwmte
f9f1f59eba Fix blob shadows not showing 2024-12-06 00:29:37 +01:00
Lwmte
4a76487620 Update ShaderLight.hlsli 2024-12-06 00:18:29 +01:00
Lwmte
e6dbd363b6 Remove branching in some light functions 2024-12-05 23:46:23 +01:00
Lwmte
936d2ff98e Additional shader optimizations 2024-12-05 22:07:16 +01:00
Lwmte
2ee37ea7de Remove branching from ShaderLight as well 2024-12-05 08:59:57 +01:00
Lwmte
d6cf25f16e Remove light calculation branching which caused extreme slowdowns 2024-12-05 08:49:10 +01:00
l.m. (Leif Melles)
4f2a0b0554
Fixed SetIntroImagePath() (#1498)
* Fixed SetIntroImagePath()

Fixed SetIntroImagePath() not using the correct path

* Update RendererDrawMenu.cpp

---------

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2024-12-05 03:27:26 +02:00
Lwmte
e17080c95c Draw HUD and display sprites only when game status is normal 2024-12-04 20:58:05 +01:00
Lwmte
ecddc1a330 Fixed #1491 2024-12-04 02:59:50 +01:00
Lwmte
a2681cb0d3 Fix error for infinite strings showing without extra args 2024-12-04 01:21:17 +01:00
Lwmte
8679e63b89 Rollback room point light formula 2024-12-03 00:12:59 +01:00
Lwmte
1f1d3b2aad Delete old documentation when recompiling 2024-12-02 23:57:17 +01:00
Lwmte
9642118cfa Fixed #1499 2024-12-02 02:56:09 +01:00
Lwmte
dbaaf9fd5e Fixed #1500 2024-12-02 02:48:28 +01:00
Lwmte
364458d68a Update RendererDraw.cpp 2024-12-02 01:19:05 +01:00
Lwmte
bc25908726 Simplify and optimize light collector 2024-12-01 23:47:19 +01:00
Lwmte
bc20b9194f Remove double light calculations from the room shader 2024-12-01 23:43:22 +01:00
Lwmte
5ab627af83 Revert unneeded code, as display adapter name is showing in debug page 2024-12-01 22:31:56 +01:00
Lwmte
dc0b746c31 Fixed BitField class bottleneck 2024-12-01 22:27:33 +01:00
Lwmte
8edd446a6d Simplify light and shadow light collection 2024-11-30 18:43:39 +01:00
Lwmte
a4d620d7fd Rollback ShaderLight 2024-11-29 01:08:16 +01:00
Lwmte
12ea734bb7 Fixed #1493 2024-11-29 00:08:30 +01:00
Lwmte
c0a93612ae
Dynamic spotlight (#1488)
* Initial commit

* Update CHANGELOG.md

* Provide helper method to convert rotation to directional vector

* Remove unneeded arguments, add missing function registration

* Fixed direction

* Fixed incorrect behaviour of Moveable:GetJointRotation() function

* Add optional castShadow flag to light functions

* Fixed spotlight shadows

* Cleanup

* Fix spotlight shadows again

* Interpolate dynamic lights, if unique ID is given

* Use name instead of unique ID

* Update docs

* Update CHANGELOG.md

* Fix incorrect variable type

* Update CHANGELOG.md
2024-11-28 23:09:29 +02:00
Lwmte
db7f864858 Fix savegames not loading from menus 2024-11-27 22:36:10 +01:00
Lwmte
554661d913 Fix problems with lensflares not appearing in binocular/lasersight mode 2024-11-27 16:32:19 +01:00
Lwmte
4f09ca48f8 Fixed #1490 2024-11-25 03:30:02 +01:00