mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add binary glTF (.glb) support
This commit is contained in:
parent
7e4919c6ed
commit
521e678d39
8 changed files with 184 additions and 42 deletions
|
@ -18,6 +18,14 @@ do
|
|||
register_entity("blender_cube", cube_textures)
|
||||
register_entity("blender_cube_scaled", cube_textures)
|
||||
register_entity("blender_cube_matrix_transform", cube_textures)
|
||||
minetest.register_entity("gltf:blender_cube_glb", {
|
||||
initial_properties = {
|
||||
visual = "mesh",
|
||||
mesh = "gltf_blender_cube.glb",
|
||||
textures = cube_textures,
|
||||
backface_culling = true,
|
||||
},
|
||||
})
|
||||
end
|
||||
register_entity("snow_man", {"gltf_snow_man.png"})
|
||||
register_entity("spider", {"gltf_spider.png"})
|
||||
|
|
BIN
games/devtest/mods/gltf/models/gltf_blender_cube.glb
Normal file
BIN
games/devtest/mods/gltf/models/gltf_blender_cube.glb
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue