Skip to content
Discussion options

You must be logged in to vote

I think there's no way to set array uniforms like that in OpenGL.

In those cases I would use a Uniform Buffer Object:
https://github.com/bnpr/Malt/blob/Development/Malt/Render/Common.py

models_UBO = UBO()

batch['BATCH_MODELS'].bind(shader.uniform_blocks['BATCH_MODELS'])

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@panthavma
Comment options

@pragma37
Comment options

Answer selected by panthavma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants