Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: