New way of handling lights and materials.

This commit is contained in:
2017-01-01 20:57:35 -04:00
parent 2b1a9ed819
commit c78a8d284f
13 changed files with 141 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
TARGET = ray
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
HEADERS = ray.hpp figure.hpp sphere.hpp plane.hpp disk.hpp material.hpp light.hpp directional_light.hpp tracer.hpp
OBJECTS = main.o sphere.o plane.o disk.o directional_light.o tracer.o
CXX = g++
CXXFLAGS = -ansi -pedantic -Wall -g -DGLM_FORCE_RADIANS -fopenmp
LDLIBS = -lm
@@ -21,6 +21,8 @@ disk.o: disk.cpp $(HEADERS)
tracer.o: tracer.cpp $(HEADERS)
directional_light.o: directional_light.cpp $(HEADERS)
.PHONY: clean
clean:
$(RM) $(TARGET) $(OBJECTS)