Generates an array declaration, as a GLSL1 syntax string.

Lookup and meta macros are added for consistency with other versions.

getGLSLListBase

  • Parameters

    • type: string

      The GLSL list data-type.

    • name: string

      The name of the GLSL list variable.

    • a: array<number, array<number>>

      The list of GLSL values.

    • Optionalqualify: string = ''

      A GLSL qualifier, if needed.

    • Optionalinit: string = type

      A data-type initialiser, type by default.

    Returns string

    The GLSL1 array declaration string.