mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
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:
@@ -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' }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user