Skip to content

Conversation

dimitre
Copy link
Member

@dimitre dimitre commented Aug 29, 2024

relevant discussion: https://forum.openframeworks.cc/t/multiple-lights-limit-with-opengl-3-2-how-to-increase/43777/26

usage example:

shader.setUniformBufferObject("vars", &customVars, sizeof(customVars));

PS: not static yet

What do you think @NickHardeman ?

@NickHardeman
Copy link
Contributor

Should probably be wrapped in the defines next to getUniformBlockIndex, getUniformBlockBinding, etc.
I don't have much experience with Uniform Blocks, so would be good to test with openGL ES. Testing with Emscripten would be helpful. Could be wrapped in

#if !defined(TARGET_OPENGLES) || defined(TARGET_EMSCRIPTEN)
#ifdef GLEW_ARB_uniform_buffer_object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants