Skip to content

Conversation

@Bash-09
Copy link

@Bash-09 Bash-09 commented Dec 30, 2025

This PR adds FloatArray, Float4Array variants to the Uniform enum (and also GlamFloatArray and GlamMatrixArray variants if the glam feature is enabled) for conveniently loading arrays of floats or matrices as uniforms.

This is particularly useful for e.g. skeletal animation which might involve loading several matrices for the bone transformations as uniforms.

It might be a nice idea to add an example that uses this and also demonstrates indexing registers in picasso. I may add this in the future if I get around to it.

I think this should resolve #58

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.

Converting two [f32;4] to a uniform is annoying, have a function

1 participant