Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 701 Bytes

MagicMorphingCube.md

File metadata and controls

15 lines (11 loc) · 701 Bytes

MagicMorphingCube

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;

MagicMorphingCube_1