SUNY Geneseo Department of Mathematics
Monday, February 2
Math 384
Spring 2015
Prof. Doug Baldwin
for r = 1 : # rows
for c = 1 : # columns
create ray RR for pixel (r,c) (eqn f/ today)
if RR intersects triangle (eqn f/ Wed)
img(r,c,:) = triangle color
else
img(r,c,:) = background color