Commit graph

9535 commits

Author SHA1 Message Date
Sezz
d3d885e78f Update moveable scale function doc comments 2025-03-05 15:34:08 +11:00
MontyTRC89
cc404ef796 Shaders optimization 2025-03-04 14:16:11 +01:00
MontyTRC89
cb2b51f0e4 Implemented underwater reflections and fixed some bugs 2025-03-04 11:38:44 +01:00
MontyTRC89
f6094aeec2 Fixed fresnel effect 2025-03-04 10:51:38 +01:00
MontyTRC89
639f494dc8 Added statics reflection;
Horizontal blur less strong;
2025-03-04 10:45:00 +01:00
MontyTRC89
c6b7d8ca14 Implemented horizontal blur for water reflections 2025-03-04 09:55:09 +01:00
Sezz
1881e08c98 Spawn streamer segments at a rate of 10 per second; update TestGlobalTimeInterval() function 2025-03-03 17:20:55 +11:00
Sezz
6bf0ff2c43 Allow streamers to have start and end colours 2025-03-03 16:12:21 +11:00
Sezz
9b9c27937a Update Streamer.h 2025-03-02 14:50:02 +11:00
Sezz
7a94f00180 Shorten names 2025-03-02 14:14:56 +11:00
Sezz
1e143c6e0a Improve streamer effect implementation 2025-03-02 14:07:43 +11:00
MontyTRC89
e7a474bb5b Fixed horizon and sky water reflection;
Tweaked water strength parameter;
2025-03-01 06:11:31 +01:00
Sezz
44128eda43 Cleanup 2025-02-28 13:48:21 +11:00
TrainWrack
2c8af9fa20
Expose Moveable Scale (#1587)
* Done

* Update CHANGELOG.md

* Cleanup

* Minor fixes

* Update CHANGELOG.md

---------

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2025-02-28 03:54:26 +02:00
Lwmte
eff0f4d363 Changed alpha threshold to epsilon 2025-02-27 23:51:55 +01:00
Lwmte
9b6424f2d5
Alpha tint (#1572)
* Work

* Work

* Move RendererRoom out of union

* Update CHANGELOG.md

* Correctly mix alpha for all blend modes

* Introduce alpha threshold

* Cleanup and formatting; also add correct alpha convertion in RGBAColor8Byte to its Color() operator

---------

Co-authored-by: Sezz <sezzary@outlook.com>
2025-02-28 00:44:27 +02:00
MontyTRC89
b996185474 Fixed last commit 2025-02-27 15:56:41 +01:00
MontyTRC89
5340ecea06 Render reflections to 8 targets with geometry shader;
Added smart collection of reflection planes;
Added RenderTarget2DArray class;
Refactored water shader;
Fixed bugs in reflections;
Fixed shader manager and added geometry shaders support;
2025-02-27 14:39:47 +01:00
MontyTRC89
bc08f9ee12 Revert "Render reflections to 8 targets with geometry shader;"
This reverts commit 9f32c721a4.
2025-02-27 14:39:38 +01:00
MontyTRC89
9f32c721a4 Render reflections to 8 targets with geometry shader;
Added smart collection of reflection planes;
Added RenderTarget2DArray class;
Refactored water shader;
Fixed bugs in reflections;
Fixed shader manager and added geometry shaders support;
2025-02-27 14:39:05 +01:00
Adngel
ae71ba601a Fix: Combat Camera in quick sands rooms
Combat Camera was taking "position.y" value that is the quick sand bottom, instead of "TopHeight" (formely maxceiling) that is the top surface of the quicksands camera.

When Lara digs enough in the quicksands, she automatically draws her weapons stopping the combat camera, that's why the bug only happened on certain range.
2025-02-27 10:31:27 +01:00
MontyTRC89
9f0ff63ae4 Cleaned up planar water reflections code;
Added material type field in buckets;
Fixed some water bugs;
Moved instanced statics constant buffer to an include file;
2025-02-25 11:12:28 +01:00
Sezz
1715fdb7b0 Update conventions, formatting, docs 2025-02-23 21:59:44 +11:00
Lwmte
1d884a4d62 Added functions to get flyby sequence parameters at a specified time point 2025-02-23 03:36:04 +01:00
Jakub
945ddd4738
Update CHANGELOG.md 2025-02-22 11:00:05 +00:00
Jakub
015a2b9be5
Update CHANGELOG.md 2025-02-22 10:59:21 +00:00
MontyTRC89
5ad0ed8abf Work in progress water, it needs a LOT of cleaning 2025-02-20 15:19:20 +01:00
Nemoel-Tomo
77d0865c8a
Waterfall emitter formatting fix (#1570) 2025-02-16 09:20:58 +02:00
Lwmte
92329741ad Clarify EmitSpotLight description 2025-02-15 07:46:37 +01:00
Lwmte
562637f599 Fixed #1574 2025-02-14 23:10:40 +01:00
Sezz
a64825b6f1 Add missing shift in EmitParticle() 2025-02-14 04:30:00 +11:00
Sezz
455d547de7 Add lock to parallel task class 2025-02-14 04:25:55 +11:00
Sezz
918237113f Make script utils more idiomatic to C++ 2025-02-13 14:59:16 +11:00
Sezz
b78376b0ab Use correct angle conversion in EmitPatricle() 2025-02-13 12:44:06 +11:00
Sezz
3e00302ade Update Rotation.cpp 2025-02-13 05:38:56 +11:00
Sezz
f1c1fd2f63 Add Lerp() method to script Rotation class 2025-02-13 04:12:34 +11:00
Lwmte
6ef9675bcb Update CHANGELOG.md 2025-02-12 09:08:45 +01:00
Sezz
ca56f62f54
Multithreading (#1541)
* Create Worker class for multithreading

* Update TombEngine.vcxproj

* Rename GetWorkerCount() to GetThreadCount()

* Add ProcessInParallel template for vectors

* Add multiThreaded flag to settings, process sprites in parallel

* Update Flow.Settings.html

* Refine WorkerManager class conventions; deinit threads properly

* Don't require explicit destruction

* Address basic PR notes

* Update Worker.cpp

* Simplify ThreadManager class

* Add method for running single task

* Use singleton pattern; use more appropriate Controller suffix

* Update WorkerController template method

* Revise method

* Handle exception in ~WorkerController()

* Grammar

* Correctly init single-threaded mode

* Update CHANGELOG.md

* Defer thread init until g_GameFlow is valid

* unsigned int -> int

* Rename class

---------

Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
2025-02-12 09:59:54 +02:00
Sezz
d37ac17a39 Formatting 2025-02-12 17:36:12 +11:00
Sezz
62ce2f043d Fix bridges moving the player when the player is underwater 2025-02-11 18:05:07 +11:00
Sezz
0bb9af9894 puzzle_keys.cpp formatting 2025-02-11 17:31:51 +11:00
davidmarr
7d18d7506f
Update Type module (#1569)
* Update VolumeObject.cpp

fixed Volume:GetActive() method

* Update CHANGELOG.md

* function description LevelFuncs.OnUseItem

* Revert "function description LevelFuncs.OnUseItem"

This reverts commit 2478afca68.

* Update Type.lua
2025-02-09 14:58:15 +00:00
Lwmte
909f631c2f Fixed mistake in electricity rendering 2025-02-08 11:04:40 +01:00
Sezz
a840c2200c Merge branch 'develop' of https://github.com/MontyTRC89/TombEngine into develop 2025-02-08 02:58:13 +11:00
Sezz
2c6331f583 Deprecate CalculateDistance() script function 2025-02-08 02:58:03 +11:00
Lwmte
a31faffec5 Update CHANGELOG.md 2025-02-07 08:31:14 +01:00
TrainWrack
1f81ccf44d
Diary module (TEN side) (#1509)
* Update to bug report form

* Update bug_report.yaml

* Update AUTHORS.md

- Tomo (general coding, special FX coding, bug fixing)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update bug_report.yaml

* Add files via upload

* Add files via upload

* Add ID_DIARY_SPRITES (1384) and DIARY_ENTRY_SPRITES (1385)

* Delete Scripts/Engine/Diarymodule.lua

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete Scripts/Engine/CustomBar.lua

* Add files via upload

* Update CustomDiary.lua

* Add files via upload

* Add files via upload

* Add files via upload

* Update CustomDiary.lua

* Upload

* Update CHANGELOG.md

* Revisions

* Doc revisions

* Remove GameVars.Engine everywhere.

* Added error warnings by integrating type module

* Update bug_report.yaml

* Fixed the bug with GameVars resetting each level.

* Added .Engine back.

* Added missing checks.

* Removed nil from textOptions loop

* Added full TEN name for printlogs.

* LatestChanges

* Added section for import.

---------

Co-authored-by: Stranger1992 <84292688+Stranger1992@users.noreply.github.com>
2025-02-06 23:05:25 +00:00
Sezz
34ff933e5b Update LogicHandler.cpp 2025-02-06 18:48:45 +11:00
Sezz
5500b13659 Update LogicHandler.cpp 2025-02-06 18:47:33 +11:00
Sezz
acb1bb1518 Enforce proper convention for the few Lua table constants that didn't use it yet 2025-02-06 18:46:16 +11:00