matching shader for hlsl and glsl