To unlock the shrink ray you need to finish the game and clear every mission at each invasion site. That is the widely reported requirement, though it is worth treating as strong guidance rather than certainty.
Big Willy Unleashed ties its later upgrades to overall progress rather than to a single mission. That means partial completion will not do it — the sites you have not fully cleared are exactly what is holding the unlock back.
Go back through each invasion site and check the mission list for anything unfinished, including optional objectives. Players most often find one overlooked task in an early area rather than a missing late-game one.
Give it a try. If the ray still does not appear after a genuine full clear, it is worth checking a current walkthrough for any revision to the requirement.