Custom shader / pipeline attributes

I am new with phaser and have some problems setting up the shaders.

Currently I set a custom pipeline for every sprite / image that needs it with “setPipeline(‘Brick’)”.

This works, but now I also want to add a few attributes to be passed to that shader, like color, life and dimensions. Can anybody send me in the right direction? The documentation is terrible!

Thanks!

Best regards,
Robin

Maybe a simpeler question:

Does phaser send attributes so I can calculate the actual width of the rendered quad? This way I know how thick the border should be in relation to the texture coords.

I guess Phaser is limited in this, I will dynamically generate textures for every case and attach these to the sprites. I think this is the only part of an sprite I can control.