Home Creators Posts Import Register Favorites Logout

Downloads

Content

Trying out this new exclusive video thing (https://www.patreon.com/posts/28728872), let me know what you think! If you want them to stay, or would prefer early videos instead, vote here:  https://www.patreon.com/posts/28728995

I couldn't upload this on Patreon itself because it's over 200mb, so instead it's on YouTube. :)

Files

Intro and Shaders - Patreon Exclusive #001

Thank you all for your support! Feel free to leave a comment below. :)

Comments

Ben Mondini

Hostly i'd like to see your progress on the Hazel-dev branch so maybe you could include that on this series ^^

Sergey Chechenkin

This video like a huge spoiler to the next video, but dev branch progress is ok)

Arnon Marcus

Hey Yan, why not just use this? https://stackoverflow.com/a/442819 You can pre-populate the unordered map by scanning the program like this - no parsing needed! :) Same for uniforms - can have just another unordered map for that. If you do all that at link-time for the program (shader), then there is no need for accessor-methods to get locations out of the unordered map(s) - you can just have the maps public (immutable), and then any code that needs locations just query the maps directly. You get error-handling "for free" then, because it's part of the unordered map implementation.