ct.js is currently only for 2D, and any 3D games made in ct.js are just fake 3D using sneaky tricks to give the illusion of 3Dness, raytracing is a way to render real 3D lighting using raycasts, a invisible ray comes out of the camera, it hits something then bounces off and keeps hitting and bouncing until it hits a light source, however far away the ray had to travel is how much darkness there is, 2D and 3D rendering are very very different from eachother, raytracing only works with real 3D, however there is raycasting for 2d lighting, which the lighting catmod already uses. and you can use a raycast yourself in ct.js.