C++ OpenGL Tutorial - 45 - UBO Class and Algorithm Part 2

In this video, we integrate another new shader concept, this time it is Uniform Buffer Objects (UBOs). This gives us access to much more uniform memory in the shader in a more organized manner. This time, we look at how to write to the buffer, while accurately considering the memory layout and padding. ***NOTE: I forgot to add the line in advanceArray() to actually push the index forward in the element stack. The code is updated in the commit here: • Official UBO Specification (Example given about half way through the file): • Website: • Twitter: • Discord: • This Github Repo: • This Playlist: Listened to the album, Excursions, by C418 ().
Back to Top