glo-texture

    1.0.1 • Public • Published

    glo-texture

    experimental

    A generic WebGL texture interface for 2D, 3D, Cube and 2DArray data.

    Experimental and subject to change.

    var createTexture = require('glo-texture/2d')
     
    var tex = createTexture(gl, pixels, [ width, height ])
    tex.minFilter = gl.LINEAR
    tex.magFilter = gl.LINEAR
    tex.generateMipmap()
    tex.bind()

    Usage

    NPM

    Todo.

    See Also

    License

    MIT, see LICENSE.md for details.

    Install

    npm i glo-texture

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • mattdesl