Shift OCS texture mapping every N distance?

Is there a way to make a OCS mapping shift at some set distance by some offset for example 75mm left every 225mm? For ease of use I was hoping that this type of “oscillation” could be added to a single Rhino material rather than mapping different position on every object (like in the image below).
image

I’m trying to map the way brick courses interweave. I couldn’t find any interface to material/texturemapping/shaders in Rhino that would allow for more complex manipulations.

I was hoping to find a way to feed Rhino custom GLSL shaders. Steve’s GhGL project was very intereseting, but as far as I know it only works in Grasshopper right now?