[Solved] How to apply shader?

Just a frame grid with transparent squares and only visible grid

Maybe it is simpler to just create it with a factory and a sprite of 1 square frame? But then I’m thinking of changing the transparency of it on runtime, so double frames would be half as transparent right?
So this approach would require more memory, but faster at runtime?