added glsl translation