Though these games obviously weren't designed with ray tracing in mind, software like ReShade, which injects games with extra code, allows modders to envision the titles with extra shading, light physics, and overall, just more graphical fidelity.
Reshade is the creation of Pascal Gilcher, who has written code for companies like NVIDIA. Gilcher offers numerous tools to members of his Patreon, including the Ray Traced Global Illumination (RTGI) shader.
With Gilcher's code inserted into games, light can be rendered in real-time. As one might imagine, such graphical improvements still require a pretty powerful GPU, making Reshade something suited for those with powerful gaming PCs.
Needless to say, the cutting edge benefits of ray tracing are colliding with nostalgia in a pretty eye-catching way, and whether you're among them or not, there are loads of people who just can't resist the appeal of seeing those beautiful rays of light grace the world of Super Mario 64 in ways that weren't possible before.