added median gpu frag shader