add pos4 to frag.glsl
upgrade cuboid to the new format