We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If we have a handle to a webgltexture, is there an option to use it directly as a material / babylon texture?
I'm trying to accomplish something similar to the example here: mrdoob/three.js#5230
Thanks!
The text was updated successfully, but these errors were encountered:
Hello you can create a RawTexture and the do this:
myTexture._texture = myHandleToWebGLTexture
Here is how to create a RawTexture:
var myTexture = BABYLON.RawTexture.CreateRGBATexture(new Uint8Array(4), 1, 1, scene)
obviously this will generate a 1x1 texture. for a bigger one do not forget to change the size of the UInt8Array :)
Sorry, something went wrong.
No branches or pull requests
If we have a handle to a webgltexture, is there an option to use it directly as a material / babylon texture?
I'm trying to accomplish something similar to the example here: mrdoob/three.js#5230
Thanks!
The text was updated successfully, but these errors were encountered: