Fighting agains type marshalling to get GLSL shaders working. WIP.