Newer
Older
pixi.js / src / filters / FXAA / FXAAFilter.js
@Mat Groves Mat Groves on 13 Jun 2016 708 bytes filter tidy up..
var core = require('../../core');
var glslify  = require('glslify');

/**
 *
 * Basic FXAA implementation based on the code on geeks3d.com with the
 * modification that the texture2DLod stuff was removed since it's
 * unsupported by WebGL.
 *
 * --
 * From:
 * https://github.com/mitsuhiko/webgl-meincraft
 *
 * @class
 * @extends PIXI.Filter
 * @memberof PIXI
 *
 */
function FXAAFilter()
{
    //TODO - needs work
    core.Filter.call(this,

        // vertex shader
        glslify('./fxaa.vert'),
        // fragment shader
        glslify('./fxaa.frag')
    );

}

FXAAFilter.prototype = Object.create(core.Filter.prototype);
FXAAFilter.prototype.constructor = FXAAFilter;

module.exports = FXAAFilter;