Code

History

Commits on master48
  1. Bump stack size.David Hoskin committed 12 years agoe95d822
  2. add more scenes!David Hoskin committed 12 years agoa3e7237
  3. main: accept -x, -y parameters.David Hoskin committed 12 years ago6baaa9c
  4. main: add command line options for maxdepth, nsamples.David Hoskin committed 12 years ago5ba6c92
  5. Simple super sampling. Very slow, and very fuzzy.David Hoskin committed 12 years agofb29b2a
  6. crank dat (depth 8->16), (res 640x480 -> 1024x768)David Hoskin committed 12 years agoc4b4ee3
  7. Add some more coloured lights.David Hoskin committed 12 years ago2a91293
  8. trace.c: consistently use lights' actual colour values.David Hoskin committed 12 years agod3ffc45
  9. trace.c: use colour.c functions throughout.David Hoskin committed 12 years ago88f0ae1
  10. Add basic colour manipulation functions.David Hoskin committed 12 years agoa3b7485
  11. Add blinn-phong specular highlights.David Hoskin committed 12 years agoe249c37
  12. clamp rgb values; guess what happens when you overflow!David Hoskin committed 12 years agoed701cd
  13. add traceshadow().David Hoskin committed 12 years ago53ad87d
  14. scene: move spheres around a bit.David Hoskin committed 12 years ago4e94ef4
  15. Dull the colours of the plane a bit.David Hoskin committed 12 years ago7e141ca
  16. tracelight(): use actual light positions.David Hoskin committed 12 years agobd54bbc
  17. oops, set hit.{ie, id} in lighthit() too.David Hoskin committed 12 years ago36f3929
  18. struct Hit: include incident eye, direction.David Hoskin committed 12 years agoebf43d3
  19. trace.c: break out tracelight(), tracerefl().David Hoskin committed 12 years ago2fc45e4
  20. Parallelisation: NPROC multithreading.David Hoskin committed 12 years ago0c3ce0d
  21. Move img into struct Scene.David Hoskin committed 12 years ago1d01412
  22. mk show: just generate a png.David Hoskin committed 12 years ago103787b
  23. Add a light to the scene, and set type=LIGHT in newlight().David Hoskin committed 12 years ago3839ccf
  24. Add light.c.David Hoskin committed 12 years agof3438aa
  25. Readme: mention that p9p works.David Hoskin committed 12 years ago9ee3937
  26. main: crank default output size to 640x480.David Hoskin committed 12 years ago7ec4fb8
  27. trace.c: implement very simple reflection.David Hoskin committed 12 years agobfe2ba5
  28. scene: add a couple more spheres.David Hoskin committed 12 years agoc23e83f
  29. trace(): add super basic ambient shading.David Hoskin committed 12 years ago496f601
  30. *hit(): return Hit object rather than just distance.David Hoskin committed 12 years ago3e77852
  31. Invert y-axis because up is down.David Hoskin committed 12 years ago8e5402b
  32. Spherehit(), and super hacky multi-object trace().David Hoskin committed 12 years agof96a273
  33. planehit(): only return positive ray intersections.David Hoskin committed 12 years agoa71472e
  34. newscene(): add a ground plane.David Hoskin committed 12 years ago3425930
  35. newplane(): remember kids, always test-compile before you ci!David Hoskin committed 12 years ago746de3e