model-viewer
model-viewer copied to clipboard
Create texture from canvas
A naïve and incomplete attempt at #3211
I've never explored this part of the codebase so I'd like to hear your thoughts, particularly about using the canvas dataURL as the gltfImage uri, before I proceed any further.
Todo:
- [x] Add a sister method alongside
Image.setURIwhich acceptscanvasinput - [ ] Add example to docs
Is this still a draft? Would you like to re-request review? I don't get pinged for commits, so I miss things sometimes...
@elalish Still a draft, sorry. I'd like to add tests and an example to the docs before requesting review. Time I would've liked to spend on this PR went into creating a custom build based on v1.8 to work around issue #3193 :(
Did you ever find the source of #3193? I'd like to get that fixed upstream. In any case, no rush and thanks for the contributions!
I believe this has been addressed by #3886.