Does this work as expected - Shader Effect Problem | Babylon.js Playground (babylonjs.com)?
attributes are not supported in fragment.
It is a lucky coincidence it worked in 4.2.1
I would suggest removing the unused attribute line https://playground.babylonjs.com/#1ASENS#355
