1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 10:25:21 +02:00

Add glTF STEP interpolation support (#15525)

This commit is contained in:
Lars Müller
2024-12-24 15:25:07 +01:00
committed by GitHub
parent d1dd044455
commit b087e2554f
4 changed files with 37 additions and 7 deletions

View File

@@ -55,6 +55,20 @@ core.register_entity("gltf:simple_skin", {
end
})
core.register_entity("gltf:simple_skin_step", {
initial_properties = {
infotext = "Simple skin, but using STEP interpolation",
visual = "mesh",
visual_size = vector.new(5, 5, 5),
mesh = "gltf_simple_skin_step.gltf",
textures = {},
backface_culling = false
},
on_activate = function(self)
self.object:set_animation({x = 0, y = 5.5}, 1)
end
})
-- The claws rendering incorrectly from one side is expected behavior:
-- They use an unsupported double-sided material.
core.register_entity("gltf:frog", {