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
MihailRis
835521e734
update doc/*/scripting/builtins/libpathfinding.md
2026-11-01 18:42:58 +03:00
MihailRis
98cd85f4f6
Merge branch 'dev' into pathfinding-update
2026-11-01 18:37:28 +03:00
MihailRis
db8c684855
update doc/*/scripting/builtins/libpathfinding.md
2026-11-01 18:09:03 +03:00
MihailRis
e196086ec3
update doc/*/scripting/builtins/libapp.md
2026-11-01 17:33:51 +03:00
MihailRis
72fa563f7a
update doc/*/scripting/ui.md
2026-10-31 17:59:26 +03:00
MihailRis
3ae9e42883
update doc/*/scripting/builtins
2026-10-31 17:19:42 +03:00
MihailRis
aab363cfb7
update doc/*/entity-properties.md, doc/*/scripting/builtins/libentities.md
2026-10-19 21:53:03 +03:00
MihailRis
3edb96e291
Merge pull request #1052 from MihailRis/add-sksleton-get-bone-offset
...
add skeleton:get_bone_offset
2026-10-18 17:52:41 +03:00
MihailRis
ddf8395d85
update doc/*/scripting/ecs.md, doc/*/scripting/builtins/libgfx-skeletons.md
2026-10-18 14:46:31 +03:00
MihailRis
5a540bc8c7
update doc/*/scripting/events.md
2026-10-18 14:17:23 +03:00
MihailRis
bb73e3f354
Merge pull request #1043 from ostermine/feat/hotbar-control
...
make hotbar size and layout configurable
2026-10-18 11:38:10 +03:00
ostermine
40e2814f9e
docs: describe hotbar keys by topic and hotbar size from server side
2026-10-16 14:06:08 +03:00
MihailRis
35e3d80f35
Merge branch 'main' into dev
2026-10-16 01:30:13 +03:00
MihailRis
ef61e28f50
fix docs typos and other trash
2026-10-16 00:20:25 +03:00
MihailRis
5dd605a4f5
update doc/*/scripting/events.md
2026-10-15 21:30:22 +03:00
ostermine
aa670f3c9d
make hotbar size and layout configurable
...
Add hotbar-size, hotbar-layout and inventory-layout to config/defaults.toml,
player.get_hotbar_size / player.set_hotbar_size and
hud.is_hotbar_visible / hud.set_hotbar_visible.
2026-10-15 15:58:56 +03:00
MihailRis
4354896008
Merge pull request #1040 from MihailRis/world-logic-configuration
...
world logic configuration
2026-10-15 12:12:33 +03:00
MihailRis
2e476a8164
update doc/*/scripting/builtins/libworld.md
2026-10-14 19:42:07 +03:00
Andrey Tazetdinov
fd17ce32ab
optimize animator
2026-10-14 16:35:21 +02:00
MihailRis
8a8119e0c2
update doc/*/scripting/builtins/libassets.md
2026-10-14 13:03:05 +03:00
MihailRis
bccc6e154f
Merge pull request #1026 from ostermine/feat/can-be-placed
...
add can_be_placed block event
2026-10-13 22:23:08 +03:00
MihailRis
3dccc13a88
update doc/*/scripting/builtins/libapp.md
2026-10-12 22:11:55 +03:00
MihailRis
51960b2449
Merge pull request #1034 from ostermine/feat/punctuation-keys
...
fix key bindings to punctuation keys lost after restart
2026-10-11 23:25:02 +03:00
ostermine
1a3f3e77e6
docs: list punctuation key names
2026-10-11 22:46:32 +03:00
ostermine
e2c44a3f13
docs: replace em dash with hyphen in events.md
2026-10-11 21:11:07 +03:00
ostermine
2a01cfc5b1
add can_be_placed block event
...
can_be_placed(x, y, z, playerid, rotation) is called before a player
places the block, after the built-in checks (replaceability, grounded,
entities). The block is placed only if the function returns true.
rotation is the rotation the block is going to be placed with, so
blocks like ladders can check the block they are attached to.
The event is not called for block.place / block.set.
Closes #909
2026-10-10 15:54:21 +03:00
MihailRis
8962042627
complete the rename of voxelengine to voxelcore
2026-10-10 10:54:36 +03:00
MihailRis
e8a83423d8
fix outdated doc/*/scripting/builtins/libgfx-skeletons.md
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled
2026-10-09 00:09:48 +03:00
MihailRis
446b6edd03
update doc/*/scripting/ecs.md
2026-10-05 21:57:16 +03:00
MihailRis
2f2da3b56a
update doс/*/scripting/builtins/libfile.md
2026-09-20 17:45:41 +03:00
MihailRis
507f32f1e5
Merge pull request #976 from MihailRis/screenshot-function
...
add gui.screenshot function
2026-09-18 00:43:29 +03:00
MihailRis
71368836c8
update doc/*/scripting/builtins/libgui.md
2026-09-17 22:12:11 +03:00
MihailRis
ef4bd4f594
Merge pull request #941 from boolean-false/crypto-library
...
Crypto library
2026-09-17 20:41:32 +03:00
MihailRis
3e2f311e67
update methods schemes
2026-09-16 23:47:25 +03:00
MihailRis
f130be4c42
update doc/*/scripting/ecs.md
2026-09-16 23:43:24 +03:00
MihailRis
38da5c89f5
fix
2026-09-14 20:07:34 +03:00
MihailRis
817092fef4
update doc/*/scripting/builtins/libnetwork.md
2026-09-14 20:06:09 +03:00
MihailRis
bd9f3d86ca
add initial animation docs (test)
2026-09-08 21:08:28 +03:00
MihailRis
8c37d0860c
update doc/*/scripting/builtins/libassets.md
2026-09-08 19:42:09 +03:00
MihailRis
856f678315
Merge branch 'main' into animation
2026-09-04 00:13:23 +03:00
MihailRis
968528c706
Merge pull request #964 from Xertis/main
...
Implementation of socket:peek
2026-09-04 00:09:56 +03:00
MihailRis
c2a77509f7
Merge pull request #965 from MihailRis/update-headless-sub-instances
...
add project arguments table passing in app.start_background_instance
2026-09-03 22:58:48 +03:00
MihailRis
fb20db047d
update doc/*/scripting/builtins/libapp.md
2026-09-03 22:31:28 +03:00
Xertis
9dacf7038f
Implementation of socket:peek
2026-09-03 19:32:49 +03:00
dagger
c83a73102e
add input.get_mouse_scroll()
2026-09-01 20:11:31 +07:00
MihailRis
05fc09a244
Merge branch 'main' into animation
2026-08-26 12:30:31 +03:00
MihailRis
03f045a709
update doc/*/scripting/extensions.md
2026-08-25 23:20:11 +03:00
MihailRis
ab3c1e1b0c
Merge branch 'main' into animation
2026-08-23 12:39:46 +03:00
MihailRis
b768730067
update doc/*/scripting/ecs.md
2026-08-23 12:14:35 +03:00