-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Creating a texture with Float32Array, gl.FLOAT format #15
Comments
Is this a DOM upload, or are you rendering to a float render target? Note that linear filtering for float textures requires |
I quickly hacked in Float32Array support but I can't make my code work. I feel like I miss something basic. I'm still wrapping my mind around all the juggling WebGL requires. Pretty sure it's not the library but me. :) The hack looks like this:
I'm rendering to render target. Thanks for the guidance! I had no idea about the regress. Actually, this part of rendering seems to work.
I'm stuck at the next step where I try to use the data rendered into a texture for particles positioning. I'm not posting it, as it is irrelevant to the Float32Array problem. |
Hello!
Thanks for the great project. I'm moving to it from ogl and have issues implementing the equivalent of GPGPU.
I have to create a Texture from Float32Array and it doesn't seem possible. Am I missing something or should I fork and update the library?
The relevant code:
four/src/WebGLRenderer.ts
Line 308 in cd6c5ba
The text was updated successfully, but these errors were encountered: