Added Phaser.Filter and started moving the shaders over into their own filter classes, so they won't all get bundled in unless needed.

This commit is contained in:
photonstorm
2013-11-21 05:00:07 +00:00
parent e32c127a97
commit 496639ff25
39 changed files with 985 additions and 344 deletions
+4 -4
View File
@@ -14,10 +14,10 @@ PIXI.BinarySerpentsFilter = function(width, height, texture)
];
this.uniforms = {
iResolution: { type: 'f3', value: { x: width, y: height, z: 0 }},
iMouse: { type: 'f3', value: { x: 0, y: 0, z: 0 }},
iGlobalTime: { type: 'f', value: 1 },
iDate: { type: 'f4', value: dates },
iResolution: { type: '3f', value: { x: width, y: height, z: 0 }},
iMouse: { type: '3f', value: { x: 0, y: 0, z: 0 }},
iGlobalTime: { type: '1f', value: 1 },
iDate: { type: '4fv', value: dates },
iChannel0: { type: 'sampler2D', value: texture, wrap: 'repeat' }
};