Function glsl

  • A template literal tag that does nothing. Useful for syntax highlighting of GLSL code.

    Parameters

    • strings: any
    • Rest ...rest: any[]

    Returns string

    Example

    const vertexShader = glsl`
    void main() {}
    `