So to fix that I have been trying to use the new volume texture support of WebGL (you know, gl.TEXTURE_3D) to implement slit-scanning on the GPU instead. It’s about as basic a WebGL application as it gets and yet I can’t figure out how to do a simple vertex buffer to draw the texture to the size of the canvas
I think all I need to do now is to follow the instructions in WebGL2 fundamentals to use a simple vertex shader that makes it a proper rectangle the size of the canvas, but I just can’t figure it out!
It’s not the tutorial (that site is awesome), it’s me. Every time I have tried to learn WebGL I get lost in the verbosity of its many options. Could anyone help me out? I just want to play around with some more complicated fragment shaders…
Don’t feel bad about it though, OpenGL (and inherently WebGL) is notorious for being one of the most confusing and badly designed APIs every created. Even the most experienced developers struggle with it when doing basic stuff.
Even the most experienced developers struggle with it when doing basic stuff.
Thanks, “funny” thing: I just worked my way through 100+ pages of tax forms + explanations today and the similarity in how it feels is disturbing… and I do not feel this way about any other programming environment I work with (not to this degree at least)
Anyway, I got it to work… ish… now the bug is in the fragment shader, but I think it kind of works out nicely