53
edits
Changes
→Profile generated
for (unsigned x = 0; x < IMG_RES; ++x) {
int k = x + y * IMG_RES;
float xx xxPoints = (2 * ((x + 0.5) * iwidth) - 1) * viewangle * aspectratio; float yy yyPoints = (1 - 2 * ((y + 0.5) * iheight)) * viewangle; Vec3f raydirrayDirection, rayorigrayOrigin; raydirrayDirection.init(xxxxPoints, yyyyPoints, -1); raydirrayDirection.normalize(); rayorigrayOrigin.init(0); // Begin tracing // trace(rayorigrayOrigin, raydirrayDirection, 0, pixel, sphere, k);
}
}