/**
 * @author Mat Groves http://matgroves.com/ @Doormat23
 */

/**
 * An RGB Split Filter.
 * 
 * @class RGBSplitFilter
 * @extends AbstractFilter
 * @constructor
 */
PIXI.RGBSplitFilter = function()
{
    PIXI.AbstractFilter.call( this );

    this.passes = [this];

    // set the uniforms
    this.uniforms = {
        red: {type: '2f', value: {x:20, y:20}},
        green: {type: '2f', value: {x:-20, y:20}},
        blue: {type: '2f', value: {x:20, y:-20}},
        dimensions:   {type: '4fv', value:[0,0,0,0]}
    };

    this.fragmentSrc = [
        'precision mediump float;',
        'varying vec2 vTextureCoord;',
        'varying vec4 vColor;',
        'uniform vec2 red;',
        'uniform vec2 green;',
        'uniform vec2 blue;',
        'uniform vec4 dimensions;',
        'uniform sampler2D uSampler;',

        'void main(void) {',
        '   gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/dimensions.xy).r;',
        '   gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/dimensions.xy).g;',
        '   gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/dimensions.xy).b;',
        '   gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;',
        '}'
    ];
};

PIXI.RGBSplitFilter.prototype = Object.create( PIXI.AbstractFilter.prototype );
PIXI.RGBSplitFilter.prototype.constructor = PIXI.RGBSplitFilter;

/**
 * The angle of the split.
 * 
 * @property angle
 * @type Number
 */
Object.defineProperty(PIXI.RGBSplitFilter.prototype, 'angle', {
    get: function() {
        return this.uniforms.blur.value / (1/7000);
    },
    set: function(value) {
        //this.padding = value;
        this.uniforms.blur.value = (1/7000) * value;
    }
});

@@ -1364,29 +1364,304 @@
 %0A * 
-The angle of the spli
+Red channel offset.%0A * %0A * @property red%0A * @type Point%0A */%0AObject.defineProperty(PIXI.RGBSplitFilter.prototype, 'red', %7B%0A    get: function() %7B%0A        return this.uniforms.red.value;%0A    %7D,%0A    set: function(value) %7B%0A        this.uniforms.red.value = value;%0A    %7D%0A%7D);%0A%0A/**%0A * Green channel offse
 t.%0A 
@@ -1676,21 +1676,21 @@
 roperty 
-angle
+green
 %0A * @typ
@@ -1695,14 +1695,13 @@
 ype 
-Number
+Point
 %0A */
@@ -1759,13 +1759,13 @@
 e, '
-angle
+green
 ', %7B
@@ -1820,29 +1820,19 @@
 rms.
-blur
+green
 .value
- / (1/7000)
 ;%0A  
@@ -1875,39 +1875,214 @@
     
-//
 this.
-padding = value;%0A       
+uniforms.green.value = value;%0A    %7D%0A%7D);%0A%0A/**%0A * Blue offset.%0A * %0A * @property blue%0A * @type Point%0A */%0AObject.defineProperty(PIXI.RGBSplitFilter.prototype, 'blue', %7B%0A    get: function() %7B%0A        return
  thi
@@ -2099,28 +2099,85 @@
 .blu
-r
+e
 .value
- = (1/7000) *
+;%0A    %7D,%0A    set: function(value) %7B%0A        this.uniforms.blue.value =
  val

Update getters/setters