Add glTF test entities

This commit is contained in:
Lars Mueller 2024-01-06 20:21:04 +01:00
parent 6be3c1a0f0
commit a74d30ed6a
4 changed files with 3209 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

@ -55,6 +55,29 @@ minetest.register_entity("testentities:mesh", {
},
})
minetest.register_entity("testentities:gltf_spider_static", {
initial_properties = {
visual = "mesh",
mesh = "testentities_gltf_spider_static.gltf",
textures = {
"testentities_gltf_spider.png"
},
},
})
minetest.register_entity("testentities:gltf_spider_animated", {
initial_properties = {
visual = "mesh",
mesh = "testentities_gltf_spider_animated.gltf",
textures = {
"testentities_gltf_spider.png"
},
},
on_activate = function(self)
self.object:set_animation({x = 0, y = 140}, 10)
end
})
minetest.register_entity("testentities:mesh_unshaded", {
initial_properties = {
visual = "mesh",