Commit Graph

59 Commits

Author SHA1 Message Date
Kae
6c562470f3 Merge launcher branch 2024-03-08 20:09:27 +11:00
Niffe
4b4013e5c8 Dynamic sun image
Also adds access to sun scale, ray color, and fixes sun rendering in front of satellites
2024-03-01 18:28:13 +02:00
Kai Blaschke
cd23817bf1
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
2024-02-28 18:30:27 +01:00
Kai Blaschke
3073a88cd1
Use "#pragma once" instead of include guards 2024-02-25 15:46:47 +01:00
Kae
aa987a2177
Merge branch 'main' into small-fixes 2024-02-20 09:49:42 +11:00
Kai Blaschke
d0099a6d79
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
2024-02-19 23:44:59 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.

99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.

Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.

Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
Kae
38910aeead Skip generating tile pieces if a color variant is invalid 2023-11-01 12:41:02 +11:00
Kae
991cf9df7e Add vertical speed support to parallax layers 2023-10-12 04:42:24 +11:00
Kae
6e7c0498ef Hook tile meshing up to Material Item drop and preview 2023-08-20 18:56:50 +10:00
Kae
9af6bfe60e Add ItemDrop glow 2023-08-20 11:56:37 +10:00
Kae
7ff3e0fecc Fix parallax and space dust jitter when lerping zoom level on very old universes 2023-08-19 15:09:00 +10:00
Kae
2a204b384f Add optional alpha threshold option for fonts 2023-08-04 23:47:52 +10:00
Kae
6afba048ec More default fonts
barcode is Libre Barcode
2023-08-03 01:17:08 +10:00
Kae
cb19eef701 Add character swapping (no GUI yet) 2023-07-22 22:31:04 +10:00
Kae
4b0bc220e4 Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
2023-07-21 00:58:49 +10:00
Kae
fe99ec6966 Render the world in its own framebuffer 2023-07-06 23:59:18 +10:00
Kae
a45d16b4ed Cache font directives 2023-07-04 06:01:29 +10:00
Kae
ced1ba32bb Fix terrain chunk meshes constantly being removed from the cache because the default time smear is the exact same as the timeout 2023-07-04 05:09:48 +10:00
Kae
081dd693ca Add 1-px padding around font and round to fix jitter 2023-07-03 20:07:16 +10:00
Kae
809744c300 Fix horizontal alignment with font, add new fonts 2023-07-03 19:46:56 +10:00
Kae
deb96742e0 Prevent particle copy, tweak debugging some more
probably not too time-saving
2023-07-03 18:31:12 +10:00
Kae
7f65913762 Use more portable encoding for Unicode character in debug strfs 2023-07-03 16:26:42 +10:00
Kae
11e00a8ded Change debug render time logging to use microseconds 2023-07-03 16:04:17 +10:00
Kae
d018957b09 Fix font glyph generation to work correctly with other fonts 2023-07-03 14:21:51 +10:00
Kae
17af21fd42 use raw wrapWidth ptr instead of Maybe 2023-07-02 00:52:36 +10:00
Kae
210d6326fc Fix splitting bug and optimize a little 2023-07-02 00:36:32 +10:00
Kae
5a56f8b81a Re-optimize text splitting while maintaining vanilla behavior 2023-07-01 23:20:25 +10:00
Kae
e29a46d100 Fix text wrapping splitting inside of words with color codes in them 2023-07-01 14:01:27 +10:00
Kae
204d449dda Change how the game renders the world backdrops 2023-06-30 08:37:27 +10:00
Kae
311929cb1e fix EnvironmentPainter issues
Was caused by fixing space dust zooming from the screen corner instead of center in a wrong way
2023-06-30 07:12:22 +10:00
Kae
2cd0c3a0aa typo lol 2023-06-30 06:39:30 +10:00
Kae
94cf66a122 Update StarTilePainter.cpp 2023-06-30 06:39:07 +10:00
Kae
fd5247321f Split world & interface shaders 2023-06-30 05:55:41 +10:00
Kae
d5fbd2001b RenderPrimitive micro-optimizations 2023-06-30 04:34:10 +10:00
Kae
dc134e168b Move lightmap wait into WorldPainter to fix single-frame lightmap lag-behind
unfortunate
2023-06-29 10:31:59 +10:00
Kae
624c7aaaf1 Move lighting calculation to separate thread 2023-06-29 10:11:19 +10:00
Kae
1e213aac5f Decimal zoom with lerp 2023-06-29 07:05:01 +10:00
Kae
a78102c2a9 Update StarTextPainter.cpp 2023-06-29 02:42:05 +10:00
Kae
48ec889579 TextPainter now uses StringView 2023-06-28 20:08:11 +10:00
Kae
152af87655 Fix broken regex, make game timestep non-const 2023-06-28 00:20:22 +10:00
Kae
332983c97b The Formatting String Catastrophe 2023-06-27 20:23:44 +10:00
LDA
c9e889723b resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
2023-06-26 11:58:35 -07:00
Kae
d5d474c673 Fix particles finally 2023-06-26 16:09:40 +10:00
Kae
79c5012033 fix Particles not being drawn with the new image member 2023-06-26 02:03:50 +10:00
Kae
13a74602bd Upgrade to C++17 2023-06-25 20:01:32 +10:00
Kae
e2424b7dcf Fix up new Object directives handling, more directives rendering improvements, fix chat bubbles and nametags only moving every 2px 2023-06-25 16:10:57 +10:00
Kae
7eb010d4a1 Pretty much working now 2023-06-24 22:49:47 +10:00
Kae
0135629301 small cleanup in TextPainter 2023-06-23 19:32:41 +10:00
LDA
fa5042902c 👋 only print opengl errors if errors actually occurred. also fixed building on gcc 2023-06-23 01:57:16 -07:00