diff options
Diffstat (limited to 'root/$mmm/plugins/gltf')
| -rw-r--r-- | root/$mmm/plugins/gltf/converts: text$lua -> table.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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 + } +} |
