mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
Add glTF test entities
This commit is contained in:
parent
6be3c1a0f0
commit
a74d30ed6a
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", {
|
minetest.register_entity("testentities:mesh_unshaded", {
|
||||||
initial_properties = {
|
initial_properties = {
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
Loading…
Reference in New Issue
Block a user