In a small tank on the Pacific island of Moorea, a clownfish named for its bold orange stripes faced a virtual predator that was not really there. The Barracuda gliding toward it across the projected seabed existed only in pixels. But the fish's racing heartbeat was absolutely real. And what happened next is helping scientists understand a quiet crisis unfolding beneath the waves.

Researchers from the University of Glasgow and France's CRIOBE research station have built something remarkable: a virtual reality aquarium that projects realistic 3D underwater scenes onto all four walls and floor of a fish tank. Inside, they can study how clownfish react to lifelike predators while simultaneously measuring oxygen consumption, a reliable indicator of metabolic rate. The study, published in the journal Conservation Physiology, represents the first time metabolic expertise has been combined with immersive VR technology to investigate how light pollution affects sea life.

The team split clownfish into two groups. One had grown up under natural daylight and moonlight. The other had been exposed to artificial light at night, the kind pouring from coastal hotels and seaside development. When a virtual Heller's barracuda attacked in the simulation, the results were strikingly different.

Fish raised under natural conditions responded with a classic anti-predator behavior: they suppressed their metabolic rate, slowing their breathing to become less noticeable as they tried to stay hidden. This response could mean the difference between life and death in the real ocean.

The artificially lit fish did the opposite. They increased their metabolic rate when faced with the same predator threat. They could not calm down. They could not hide.

"Fish from ambient light environments exhibited a strong anti-predator response by lowering their metabolic rate, whereas fish with a history of artificial light exposure at night did not," said Shaun Killen, professor of ecophysiology at the University of Glasgow and senior author of the study. "As light pollution expands globally, if left unchecked, its ability to disrupt natural predator and prey dynamics may have cascading consequences for survival, as well as fish population numbers in coastal ecosystems."

This matters because artificial light at night is spreading fast along coastlines worldwide. Previous research had shown it alters animal behavior and reproduction, but nobody fully understood how it affects predator-prey encounters. Studying them in the wild is difficult. Recreating large predators in a lab has been nearly impossible. The VR platform changes that.

"By combining virtual reality with physiological measurements, we can now study these processes under realistic but fully controlled conditions," said Suzanne Mills, a professor at CRIOBE in Moorea. She believes the findings offer a mechanistic explanation for something her team had already observed in the wild: higher rates of predation on young reef fish near lit coastlines.

The VR aquarium gives scientists a new window into how light pollution is quietly reshaping ocean life. While the technology might seem futuristic, the questions it answers are deeply practical: what happens to fish when the coast never gets dark?