voxelcore/res
ostermine 89bdadd6aa render the world relative to an origin near the camera
World coordinates were passed to GPU as floats: u_model of a chunk and
of a model had the world translation, vertices of translucent blocks,
particles, precipitation, block wrappers, lines and 3D texts were built
in the world space, and the camera position was subtracted in shaders.
The float step grows with the distance from the world origin (6 cm at
1M blocks, 2 m at 30M): blocks got skewed, then stuck together.

Camera::getOrigin() is an integer point near the camera (X and Z are
rounded to 1024 blocks, Y is 0). Camera::getView() is relative to it,
and every position passed to GPU is "world - origin" calculated on CPU,
so the shaders keep working with small numbers and do not change:
u_cameraPos, a_modelpos, u_inverseView and the shadows matrices are in
the same space as before, shifted by the origin. Matrices of a shadow
map are converted from the origin of its camera to the origin of the
player camera. The clouds shader gets the origin wrapped by the period
of its waves, the waves stay bound to the world.

Vertices of translucent blocks are local to the chunk now, as vertices
of opaque ones, and drawn with u_model of the chunk.
2026-11-12 10:05:06 +03:00
..
config make hotbar size and layout configurable 2026-10-15 15:58:56 +03:00
content/base revert player_animator.lua changes 2026-10-16 22:25:05 +03:00
devtools update vca.toml 2026-09-06 01:38:19 +03:00
fonts removed unused file 2024-02-28 16:39:41 +03:00
generators convert generator parameters naming to the project style 2024-10-14 04:45:11 +03:00
layouts reverting it because voices are not reasom 2026-11-03 22:08:44 +03:00
models Merge branch 'main' into animation 2026-08-18 23:37:27 +03:00
modules fix entity.transform size animation 2026-10-26 19:31:47 +03:00
presets add 'sky_tint', 'clouds_tint', 'min_sky_light' weather parameters 2026-02-12 20:27:29 +03:00
project feat: 'res:project' as default project 2026-10-12 20:06:30 +03:00
scripts fix math.random seed being the same on every launch 2026-11-06 03:49:26 +03:00
shaders render the world relative to an origin near the camera 2026-11-12 10:05:06 +03:00
texts update ru_RU.txt 2026-11-03 21:35:38 +03:00
textures add common blank texture file 2025-12-28 18:27:24 +03:00
preload.json update res/preload.json 2026-10-26 12:27:41 +03:00
resources.json change 'graphics.ssao' from flag to number 2025-12-19 18:55:55 +03:00