3 ms·
This 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://g
by ohazi 6y ago
This 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.