Rattlesnakes have vertical pupils in their eyes like cats, unlike grass snakes. According to studies, the slit pupils of rattlesnakes aid in their ability to perceive depth, which helps them ambush their prey. According to 2015 research, species like rattlesnakes that have vertically extended pupils are more likely to be ambush predators who prey both during the day and at night.