Skip to content

Add support for passing arrays as uniforms #11

@TheSeamau5

Description

@TheSeamau5

There is a design choice here on whether to use Elm Arrays or Elm Lists to do this, but, the essence is that you'd want the following to be possible:

uniform vec3 myVectorArray[MY_VECTOR_ARRAY_LENGTH];

In GLSL, uniform arrays must be of fixed size and that size must be declared at compile-time and therefore the length of the array must be computed at run-time in order to compile the program. This could trigger dynamic recompilation of the shader if the Array were to change size.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions