Based on 'MagicMorphingCube' by laserdog and ported by JiPi.
A cube rotates and the surface is cyclically changed by a red electrical impulse. At first reminiscent of the Lonley Voxel, but technically has little in common with this code. The realization of the camera with a mat4 matrix is interesting here.
mat4 viewMat = lookAt(eye, vec3(0.), vec3(0., 1., 0.));
ray = (viewMat * vec4(ray, 1.)).xyz;