Added ray-plane intersection.

This commit is contained in:
2016-12-26 17:43:57 -04:00
parent 2d437f07bc
commit dd4faafc15
6 changed files with 191 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
TARGET = ray
HEADERS = ray.hpp sphere.hpp figure.hpp light.hpp tracer.hpp
OBJECTS = main.o sphere.o tracer.o
HEADERS = ray.hpp figure.hpp sphere.hpp plane.hpp light.hpp tracer.hpp
OBJECTS = main.o sphere.o plane.o tracer.o
CXX = g++
CXXFLAGS = -ansi -pedantic -Wall -g -DGLM_FORCE_RADIANS -fopenmp
LDLIBS = -lm
@@ -15,6 +15,8 @@ main.o: main.cpp $(HEADERS)
sphere.o: sphere.cpp $(HEADERS)
plane.o: plane.cpp $(HEADERS)
tracer.o: tracer.cpp $(HEADERS)
.PHONY: clean