gophergfx
    Preparing search index...

    Class Material2

    Represents a Material for use in 2D graphics

    Material2

    Index
    color: Color

    Controls the color of the material (defaults to white)

    Material2

    drawMode: number

    Controls the draw mode of the material (one of gl.POINTS, gl.LINES, gl.LINE_STRIP, gl.LINE_LOOP, gl.TRIANGLES, gl.TRIANGLE_STRIP, gl.TRIANGLE_FAN)

    Material2

    texture: Texture | null

    Controls the texture of the material. Can be null, meaning no texture.

    Material2

    visible: boolean

    Controls the visibility of the material (false = hidden)

    Material2

    shader: ShaderProgram = ...

    Shaders to use for all materials

    Material2