6 ms·
I'm a little confused about what's happening here... Rust can run in an OpenGL shader ?!
by hellofunk 6y ago
I'm a little confused about what's happening here... Rust can run in an OpenGL shader ?!
- ohazi 6y agoThis is old and may not even compile anymore, but it's short enough to give you an idea of what's going on. https://github.com/ohazi/opengl-demo-rust https://github.com/ohazi/opengl-demo-rust GLSL shaders are usually either loaded from files or stored as strings in your programming language of choice. The OpenGL library or bindings will usually have some facility to compile those programs and then send them to the GPU, along with textures, geometry, etc.