bad and untested linear shader code