5201 Commits

Author SHA1 Message Date
Moritz Zwerger
d4682fe0dc
improve opengl font compression, make it configurable 2023-12-06 14:00:50 +01:00
Moritz Zwerger
3fde8031c4
fix wrong test 2023-12-06 04:14:53 +01:00
Moritz Zwerger
76ba695487
fix skin manager tests, fix skin wide detection 2023-12-06 04:02:09 +01:00
Moritz Zwerger
00aa125ed1
fix test build 2023-12-06 00:04:55 +01:00
Moritz Zwerger
5067a38c24
skin reading test 2023-12-06 00:01:21 +01:00
Moritz Zwerger
901b2a029c
wide, small skin tests 2023-12-05 23:46:50 +01:00
Moritz Zwerger
acb3bd3b02
verify skin size 2023-12-05 23:37:49 +01:00
Moritz Zwerger
803cdcc552
option to disable compressed font textures
That can workaround issues on some gpus
2023-12-05 23:28:31 +01:00
Moritz Zwerger
dc575601a9
remove RenderSystem::nativeShaders
Should not be exposed publicly as it does not matter. Checking system quality is faster then set contains
2023-11-28 00:03:11 +01:00
Moritz Zwerger
c18515ff57
rename ResourceLocationCodec to IdentifierCodec
Yes, its a resource location but functions as an identifier in that context
2023-11-27 23:59:02 +01:00
Moritz Zwerger
4cc551d919
move time constant to WorldTime 2023-11-27 23:57:18 +01:00
Moritz Zwerger
45f26edd41
move some RenderConstants to correct class 2023-11-27 23:52:46 +01:00
Moritz Zwerger
c78f48b314
Rename OpenGLVendor::strict 2023-11-27 23:47:23 +01:00
Moritz Zwerger
4527fe9667
doc: how to support newer protocol versions 2023-11-27 23:16:03 +01:00
Moritz Zwerger
e29c466e8e
fix tests 2023-11-27 19:46:59 +01:00
Moritz Zwerger
354b647908
model loading: allow merged/split models, double stone slab renderer (<1.13) 2023-11-27 15:55:50 +01:00
Moritz Zwerger
e3b02cc53f
make short grass own block 2023-11-27 15:14:27 +01:00
Moritz Zwerger
49053a0d99
correctly fix uv start 2023-11-27 15:14:13 +01:00
Moritz Zwerger
064d384e30
multi layer item rendering 2023-11-27 14:58:06 +01:00
Moritz Zwerger
f10184bad6
slab renderer < 1.13 2023-11-27 14:09:33 +01:00
Moritz Zwerger
eb00591256
fix some hardness values 2023-11-27 14:01:31 +01:00
Moritz Zwerger
bf000922b7
add all slabs and slab blocks
Just wanted to make them render in < 1.13, large commit
2023-11-27 10:49:21 +01:00
Moritz Zwerger
31e1dc4073
textures: load correct 9th texture
Fixes crash on mesa drivers and wrong behavior
2023-11-26 20:54:25 +01:00
Moritz Zwerger
9e995d08b9
registry tests: 1.8.9 and 1.12.2 entity data 2023-11-26 20:48:32 +01:00
Moritz Zwerger
68d855041d
player additional: correctly observe display name 2023-11-26 20:44:29 +01:00
Moritz Zwerger
d4a0ade701
benchmark tnt 2023-11-26 20:42:39 +01:00
Moritz Zwerger
20c60b83db
entity name feature: observe field instead of raw data
That fixes a String to ChatComponent class cast exception in <1.13, depending on the server
2023-11-26 20:42:32 +01:00
Moritz Zwerger
e6ffbbf4b3
load correct minosoft meta version
That mostly fixes entity data in versions <1.13
2023-11-26 20:41:49 +01:00
Moritz Zwerger
593be2d925
cache player tab name 2023-11-26 20:26:42 +01:00
Moritz Zwerger
a243693998
skeletal: pack matrices async 2023-11-26 20:26:31 +01:00
Moritz Zwerger
6d46b8358b
improve chunk queue sorting performance
distance is now cached
2023-11-26 19:55:20 +01:00
Moritz Zwerger
1f11a66fae
disallow binding of texture array if unloaded + fix
Its simply impossible. Shaders can not be loaded/used when its not loaded.

This fixes and INVALID_OPERATION opengl error
2023-11-26 19:45:59 +01:00
Moritz Zwerger
b36e8f7f6a
glfw: disable depth and stencil for default framebuffer
Seems to do nothing.
2023-11-26 00:47:50 +01:00
Moritz Zwerger
582a6e924a
gui framebuffer: don't attach depth buffer
Saves vram, on 4k roughly 3840*2160*3 bytes
2023-11-26 00:42:48 +01:00
Moritz Zwerger
0b078921f7
texture manager: rename dynamic and static 2023-11-26 00:10:06 +01:00
Moritz Zwerger
f7956d44f7
fix font tests 2023-11-26 00:08:10 +01:00
Moritz Zwerger
5f7a31599a
font texture array 2023-11-25 23:48:21 +01:00
Moritz Zwerger
6cfb689f7b
fix reading of png rgb 2023-11-25 22:42:00 +01:00
Moritz Zwerger
35a9a08880
make opengl texture array implementation lighter
Most of the functionality is actually not opengl specific, so abstract it
2023-11-25 22:12:28 +01:00
Moritz Zwerger
31225196ee
rework some mipmapping 2023-11-25 19:46:45 +01:00
Moritz Zwerger
66846d9abd
eros: fix potential crash when updating servers 2023-11-25 18:58:29 +01:00
Moritz Zwerger
2c0bc512ad
rgba buffer fixes, tests 2023-11-25 18:57:50 +01:00
Moritz Zwerger
fabf71177e
wip abstract texture buffers
They can be RGB and RGBA now
2023-11-25 18:57:50 +01:00
Moritz Zwerger
ae8c8e293e
forgot to actually run the tests 2023-11-25 18:37:44 +01:00
Moritz Zwerger
920539f0c4
fix wrong minosoft meta url migration 2023-11-25 18:12:27 +01:00
Moritz Zwerger
c709ab939c
download minosoft meta and pixlyzer from multiple urls (failover)
My gitlab really blew up this night du to soooo many requests (not bad). But people were unable to play, because they could not download resources. Now github and gitlab.com are also tried as fallback.

Closes GH-20, GH-22
2023-11-25 16:21:05 +01:00
Moritz Zwerger
749936ec7b
profile loader: properly crash when error occurs 2023-11-25 16:19:30 +01:00
Moritz Zwerger
0cfb65b0c9
minosoft meeta: correctly throw error when (down)loading fails
See GH-20
2023-11-25 15:37:52 +01:00
Moritz Zwerger
ae7b15de10
container: handle open/close events on rendering thread
Windows does not allow changing the gl cursor mode on non main thread (or at least it behaves undefined). Both events may be called from any thread (e.g. the network thread when opening a chest). Thread safety was not guaranteed anymore and thus breaking.

Fixes #118
2023-11-24 23:43:24 +01:00
Moritz Zwerger
a63b020e53
glfw: fix crash when window size is <= 0
Windows sets the window size to (0,0) when minimizing the window. That leads to eventual division by zero errors and opengl does not want to attach a framebuffer with that size, resulting in it being incomplete. After maximizing again, it tries to unload that framebuffer, but it was never loaded. Minosoft crashes with an invalid framebuffer state: deleted
2023-11-24 23:43:22 +01:00