Gustas
638c0d7db1
Fix menu effects ignoring annotations
2025-12-30 22:57:55 +00:00
RoosterDragon
bcfaa44d66
Amortize allocations when sorting renderables.
...
Using OrderBy provides a stable sort, but internally allocates a buffer every time for storing the sort keys. We'd like to avoid this allocation, but we also can't directly use Array.Sort/Span.Sort as these are unstable sorts.
By calculating sort keys with the item index embedded, we can ensure a stable sorting result whilst being able to reuse the buffer for the sort keys across future calls.
2025-12-15 19:33:19 +02:00
Paul Chote
a04cfaec78
Move GlobalModData state to ModData.
2025-12-12 12:32:10 +02:00
Gustas
082f369fe3
Add smooth minimap to world movement
2025-09-11 14:15:37 +01:00
Paul Chote
25188e849e
Move TileSize definition to terrain info.
2025-04-01 20:10:39 +03:00
RoosterDragon
79454d8fd2
Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
...
Silence IDE0305.
2025-03-31 12:02:41 +03:00
RoosterDragon
0338258b45
Fix IDE0200
2025-02-22 14:56:25 +02:00
Gustas
239891070d
Make sure palettes are updated if colors are toggled in game runtime
...
And fix MutablePalette's not getting updated
2024-05-04 16:31:35 +02:00
Gustas
5fc36bd45f
Make player stance colours universally respected
2024-05-04 16:31:35 +02:00
Paul Chote
6c56ea4c55
Introduce Renderer.WorldBufferSnapshot().
2023-12-15 13:37:05 +02:00
Paul Chote
c3ff5d954a
Ensure consistent state in the world texture before rendering.
2023-10-23 22:42:33 +03:00
Paul Chote
47af7a9023
Add IPostProcessWorldShader for custom effect render passes.
2023-10-22 19:34:05 +03:00
Gustas
686040a316
Turn ModelRenderer and VoxelCache into traits
2023-09-23 19:12:51 +02:00
michaeldgg2
1a2d43fc99
WorldRenderer: use string.IsNullOrEmpty for check in Palette method
...
Unified usage of WorldRenderer.Palette method when it comes to appending player name (in case of player palette)
2023-07-25 13:33:11 +03:00
RoosterDragon
231bf01f18
Fix CA1854
2023-06-20 17:57:40 +02:00
Gustas
44f1af7059
Move TileScale to MapGrid
2023-05-02 16:37:30 +03:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
Gustas
dab3ca0025
Add support for dark player colors
2023-03-10 15:43:24 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Vapre
83357af14c
WorldRenderer, replace foreach ActorsWithTraits with ApplyToActorsWithTrait. #18798 .
2022-03-13 10:45:01 +01:00
Paul Chote
27f9f35efb
Fix incorrect world height to screen depth conversion.
2021-08-20 20:17:55 +02:00
Paul Chote
962d6496bd
Overhaul depth preview rendering:
...
* Replace Jet color map with grayscale
* Added Shift + \ hotkey to toggle preview
* Added Shift + [, Shift + ] hotkeys to change contrast
* Added Shift + ;, Shift + ' hotkeys to change offset
2021-08-20 20:17:55 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Andre Mohren
62207313a0
32bpp assets dont need a palette to be defined.
2021-06-25 10:33:54 +02:00
Paul Chote
0735345674
Set world framebuffer size based on minimum zoom.
...
This avoids reallocating buffers each time the player changes zoom level.
2021-05-16 14:10:32 +02:00
teinarss
6b74093c04
Add readonly to structs
2021-03-14 15:17:57 +01:00
Paul Chote
0a374e2264
Move ownership of tile sprites to the terrain renderer.
2021-01-11 21:57:55 +01:00
abcdefg30
31c9b4fc80
Revert renderable buffer sorting improvements
2020-12-05 17:03:03 +00:00
RoosterDragon
4daa5193b6
Use tie breaks for sort order in WorldRenderer.GenerateRenderables
2020-11-01 19:00:20 +00:00
RoosterDragon
71e3ca4493
Sort renderables in-place in WorldRenderer.GenerateRenderables
2020-10-17 23:48:48 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
Paul Chote
01e955ca37
Implement TS-style terrain lighting.
2020-07-13 14:02:02 +02:00
teinarss
67ff292d62
Refactor WorldRenderer to use less allocations
2020-07-03 17:41:41 +02:00
Paul Chote
88cdad4189
Add support for polygon selection shapes.
2020-03-24 00:07:10 -05:00
Paul Chote
84daf890d3
Use antialiasing filter when rendering world annotations.
2020-01-26 20:22:49 +01:00
tovl
695d9a6cb1
Centralize shroud changes in one pass to improve performance.
2020-01-12 04:50:25 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
327866ffc3
Render world via an intermediate FrameBuffer.
2019-12-08 04:36:31 +01:00
Paul Chote
e772adb0a9
Draw annotations using the UI renderers.
2019-10-20 23:46:33 +02:00
Paul Chote
8c1b0f1afe
Add IEffectAnnotation interface.
2019-10-20 23:46:33 +02:00
Paul Chote
7d1ce0c83b
Add annotation support to IOrderGenerator.
2019-10-20 23:46:33 +02:00
Paul Chote
edaa7918fc
Add IRenderAnnotations(WhenSelected) interfaces.
2019-10-20 23:46:33 +02:00
Paul Chote
b93c7cabb3
Render voxels before BeginFrame.
2019-09-04 20:20:04 +02:00
Paul Chote
3e404f6ac2
Remove HSLColor.
2019-03-04 18:26:42 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00