Added ray-disk intersection and material definition.

This commit is contained in:
2016-12-28 02:17:48 -04:00
parent d25a3c62b8
commit 2bec46b580
8 changed files with 1599 additions and 2939 deletions

View File

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