search for: neglight

Displaying 2 results from an estimated 2 matches for "neglight".

2008 Dec 16
0
[LLVMdev] Another compiler shootout
...al lambda2 = ray_sphere(o, d, scene->center, scene->radius); if (lambda2 < *lambda) { if (scene->child) { int i; for (i=0; i<5; ++i) intersect(o, d, lambda, t, &scene->child[i]); } else { *lambda = lambda2; *t = scene; } } } Vec neglight; real ray_trace(Vec o, Vec d, struct Scene scene) { real lambda = INFINITY; struct Scene *t = NULL; intersect(o, d, &lambda, &t, &scene); if (lambda == INFINITY) return 0.0; { Vec p = add(o, scale(lambda, d)); Vec normal = unitise(sub(p, t->center)); real g = d...
2008 Dec 16
6
[LLVMdev] Another compiler shootout
FYI. http://leonardo-m.livejournal.com/73732.html If anyone is motivated, please file bugs for the losing cases. Also, it might make sense to incorporate the tests into our nightly tester test suite. Thanks, Evan