I have a demo script with all the shader functions for this on my itch.io page here:
Robo25's Coppercube Shaders Script