-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How can use the CanvasTexture? #866
Labels
Comments
I didn't know such way to use custom textures. One way to achieve this may be overriding VglTexture's computed property on a new component like below. const VglCanvasTexture = {
mixins: [VglTexture],
computed: {
inst() {
return new CanvasTexture(yourCanvasElement);
},
},
}; The canvas to become a custom texture have to be created and rendered manually, I guess. But I haven't test this code. Just an idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am working in a vue app which need render a 3d object with a custom texture; in this tutorial the three js use CanvasTexture component, so my question is how can be used in the vue-gl?
The text was updated successfully, but these errors were encountered: