figureone
    Preparing search index...

    Type Alias TypeFragmentShader

    TypeFragmentShader:
        | string
        | { src: string; vars?: string[] }
        | (string | number | boolean)[]
        | OBJ_FragmentShader

    A fragment shader can be defined with either:

    • { src: string, vars: Array<string> }: a shader source code string and a list of attributes and uniforms
    • string: an identifier to a built-in shader
    • OBJ_VertexShader | Array<string | number | boolean>: composing options for a composable shader