import * as core from '../../core';
import { readFileSync } from 'fs';
import { join } from 'path';
/**
*
* 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.
*
* @see https://github.com/mitsuhiko/webgl-meincraft
*
* @class
* @extends PIXI.Filter
* @memberof PIXI.filters
*
*/
export default class FXAAFilter extends core.Filter
{
/**
*
*/
constructor()
{
// TODO - needs work
super(
// vertex shader
readFileSync(join(__dirname, './fxaa.vert'), 'utf8'),
// fragment shader
readFileSync(join(__dirname, './fxaa.frag'), 'utf8')
);
}
}