Skip to content

Commit

Permalink
Merge branch 'bugfix/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelong42 committed Jul 29, 2015
2 parents 458b48f + b9b2f0e commit 6380ec6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions doc/ToDo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
- [ ] Fix some of the initial tests to use a real color value, rather
than the placeholder :red value I was using. Also, rename the test
appropriately.
- [ ] add a command-line interface for passing options (particularly
for passing resolution arguments)

- [ ] I still find first-hit to be rather ugly. I'd like to abstract
out bits of it, and make it easier to read.
Expand Down Expand Up @@ -28,9 +27,6 @@
Again, this requires the scene description to be a hierarchical
graph.

- [ ] add a command-line interface for passing options (particularly
for passing resolution arguments)

- [ ] add provisions for velocity coordinates, and relativistic
effects (this would fall under the pie-in-the-sky category of
feature additions, but it would be nice to finally do this)
Expand All @@ -52,3 +48,7 @@

- [X] I currently mix floats and ints in my tests, rather
arbitrarily. I need to normalize this.

- [X] Fix some of the initial tests to use a real color value, rather
than the placeholder :red value I was using. Also, rename the test
appropriately.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject toy-raytracer "2.0.0"
(defproject toy-raytracer "2.0.1"
:license {:name "MIT License"}
:dependencies [[org.clojure/clojure "1.5.1"]]
:main toy-raytracer.core )
16 changes: 8 additions & 8 deletions test/toy_raytracer/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

(def displacement-result (->Point -3.0 -3.0 -3.0))

(def red-surface (->Surface :red))
(def red-surface (->Surface (apply ->Color [1.0 0.0 0.0])))

(def red-sphere (->Sphere red-surface 5.0 dummy-point))

Expand Down Expand Up @@ -39,14 +39,14 @@
;(deftest intersect-test
; (is (nil? (intersect red-sphere dummy-point dummy-ray))) )

(def pixel (->Point 0 0 0))
(def pixel (->Point 0.0 0.0 0.0))

(def sphere-back (defsphere 1.0 200.0 [ 0.0 0.0 -1200.0]))
(def sphere-front (defsphere 1.0 200.0 [ 0.0 0.0 1200.0]))
(def sphere-bottom (defsphere 1.0 200.0 [ 0.0 -1200.0 0.0]))
(def sphere-top (defsphere 1.0 200.0 [ 0.0 1200.0 0.0]))
(def sphere-left (defsphere 1.0 200.0 [-1200.0 0.0 0.0]))
(def sphere-right (defsphere 1.0 200.0 [ 1200.0 0.0 0.0]))
(def sphere-back (defsphere 200.0 [ 0.0 0.0 -1200.0] [1.0 1.0 1.0]))
(def sphere-front (defsphere 200.0 [ 0.0 0.0 1200.0] [1.0 1.0 1.0]))
(def sphere-bottom (defsphere 200.0 [ 0.0 -1200.0 0.0] [1.0 1.0 1.0]))
(def sphere-top (defsphere 200.0 [ 0.0 1200.0 0.0] [1.0 1.0 1.0]))
(def sphere-left (defsphere 200.0 [-1200.0 0.0 0.0] [1.0 1.0 1.0]))
(def sphere-right (defsphere 200.0 [ 1200.0 0.0 0.0] [1.0 1.0 1.0]))

(def dummy-world
[ sphere-front
Expand Down

0 comments on commit 6380ec6

Please sign in to comment.