Fix shader hash generation for shadeless materials