New flattening shader