mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
Fixed filters for new shader code.
This commit is contained in:
@@ -14,11 +14,11 @@ PIXI.SineWaveFixedBaseFilter = 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 },
|
||||
iChannel0: { type: 'sampler2D', value: texture, wrap: 'repeat' }
|
||||
iMouse: { type: '3f', value: { x: 0, y: 0, z: 0 }},
|
||||
iResolution: { type: '3f', value: { x: width, y: height, z: 0 }},
|
||||
iGlobalTime: { type: '1f', value: 1 },
|
||||
iDate: { type: '4fv', value: dates },
|
||||
iChannel0: { type: 'sampler2D', value: texture, textureData: { repeat: true } }
|
||||
};
|
||||
|
||||
// Shader by BrokenBit (https://www.shadertoy.com/view/MsXGzX)
|
||||
|
||||
Reference in New Issue
Block a user