Skip to content

Workaround for uniform array type inference failure #37

@costructuralist

Description

@costructuralist

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 be Vec3, and not Array 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions