5114 Commits

Author SHA1 Message Date
Moritz Zwerger
e6c9c73bb9
enable biome noise by default
Since it is on demand only, things got way faster and disabling it is kind of removing a feature by default
2023-12-08 07:39:19 +01:00
Moritz Zwerger
7f32520f6e
calculate biome cache on demand, refactor chunk section constructor
This makes things way faster and uses less memory. Biome is just needed for tinted blocks (and maybe sky color), most blocks don't require it. Calculating the biome is expensive (at least when joining).
2023-12-07 23:49:12 +01:00
Moritz Zwerger
c4cd6c4856
calculate section occlusion on demand
In headless mode occlusion does not matter and chunks that are invisible or occluded also don't matter
2023-12-07 23:01:46 +01:00
Moritz Zwerger
4f68567199
fix biome cache building
It took the world coordinates, not the chunk coordinates
2023-12-07 22:55:38 +01:00
Moritz Zwerger
ca59a7ce61
entity position: make biome lazy 2023-12-07 22:47:59 +01:00
Moritz Zwerger
0bbab0ca3c
network: 1.20.3-pre3..1.20.4
They fixed a bug in the explosion packet, and added the `DOWNLOADED` state in resourcepack
2023-12-07 21:37:57 +01:00
Moritz Zwerger
a9603201fb
bump dependencies 2023-12-07 20:23:02 +01:00
Moritz Zwerger
730cdf3e5f
bump gradle 2023-12-07 20:12:59 +01:00
Moritz Zwerger
a3d895d686
bump kutil
This adds some long needed (unsafe) updates for reflections
2023-12-07 20:11:13 +01:00
Moritz Zwerger
488c36f9da
micro improvements to VeronoiBiomeAccessor 2023-12-07 19:45:30 +01:00
Moritz Zwerger
255e14cd82
refactor and document more of the veronoi noise 2023-12-07 18:59:04 +01:00
Moritz Zwerger
1fab559a68
improve Voronoi biome accessor + test
It does not allocate memory now, removes a lot of the ambiguous chunk/block relative code and improves performance of querying biomes in general

!: It breaks the vanilla implementation, vanilla allows querying biomes hundreds of blocks away, now it is maximum 32 blocks.
2023-12-07 14:27:06 +01:00
Moritz Zwerger
cc5b2f8006
refactor noise biome accessor, tests 2023-12-06 16:08:54 +01:00
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