added new glsl mode.