You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Array uniforms are not supported in the elm compiler. This is not a bug, but a missing feature. The supported shader types are listed in the package docs: Int, Float, Texture and Vec2, Vec3, Vec4, Mat4 from the linear-algebra package.
I have the following Elm type for uniforms:
type alias Uniforms = { cellColors : List Vec3 }
In a vertex shader I have the following declaration for an array of vec3 uniform:
uniform vec3 cellColors[9];
The GLSL parser, however, is inferring/parsing the type of the
cellColors
variable to beVec3
, and notArray Vec3
.It seems as if this is a bug in the underlying GLSL parsing library: noteed/language-glsl#19
Is there a way to work around this bug?
The text was updated successfully, but these errors were encountered: