lib/pixi/src/filters/rgb/RGBSplitFilter.js
function RGBSplitFilter()
{
    core.AbstractFilter.call(this,
        // vertex shader
        null,
        // fragment shader
        fs.readFileSync(__dirname + '/rgbSplit.frag', 'utf8'),
        // custom uniforms
        {
            red:        { type: 'v2', value: { x: 20, y: 20 } },
            green:      { type: 'v2', value: { x: -20, y: 20 } },
            blue:       { type: 'v2', value: { x: 20, y: -20 } },
            dimensions: { type: '4fv', value: [0, 0, 0, 0] }
        }
    );
}
function RGBSplitFilter()
{
    core.AbstractFilter.call(this,
        // vertex shader
        null,
        // fragment shader
        fs.readFileSync(__dirname + '/rgbSplit.frag', 'utf8'),
        // custom uniforms
        {
            red:        { type: 'v2', value: { x: 20, y: 20 } },
            green:      { type: 'v2', value: { x: -20, y: 20 } },
            blue:       { type: 'v2', value: { x: 20, y: -20 } },
            dimensions: { type: '4fv', value: [0, 0, 0, 0] }
        }
    );
}
function RGBSplitFilter ( ) { core . AbstractFilter . call ( this , // vertex shader null , // fragment shader fs . readFileSync ( __dirname + '/rgbSplit.frag' , 'utf8' ) , // custom uniforms { red : { type : 'v2' , value : { x : 20 , y : 20 } } , green : { type : 'v2' , value : { x : - 20 , y : 20 } } , blue : { type : 'v2' , value : { x : 20 , y : - 20 } } , dimensions : { type : '4fv' , value : [ 0 , 0 , 0 , 0 ] } } ) ; }
An RGB Split Filter.

@class
@extends AbstractFilter
@namespace PIXI
An RGB Split Filter .