From 269d9986c12e277eb6fd5241f34c027c439f84ae Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 28 Mar 2022 15:58:08 +0200 Subject: fix plugins in example root --- root/$mmm/plugins/gltf/converts: text$lua -> table.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 root/$mmm/plugins/gltf/converts: text$lua -> table.lua (limited to 'root/$mmm/plugins/gltf') diff --git a/root/$mmm/plugins/gltf/converts: text$lua -> table.lua b/root/$mmm/plugins/gltf/converts: text$lua -> table.lua new file mode 100644 index 0000000..5a7869f --- /dev/null +++ b/root/$mmm/plugins/gltf/converts: text$lua -> table.lua @@ -0,0 +1,16 @@ +local dom = require('mmm.dom') +return { + { + inp = 'URL -> model/gltf-binary', + out = 'mmm/dom', + cost = 1, + transform = function(self, href) + return dom['model-viewer']({ + src = href, + ['auto-rotate'] = true, + ['camera-controls'] = true, + ['camera-orbit'] = "548.2deg 117deg 282.4m" + }) + end + } +} -- cgit v1.2.3