Move shader opening out of renderer class