naive color driven sub-sampling
slightly optimized KdTree::nearest_intersection
fixed bug in Box::intersect
fixed stripes on spheres in spheres_ao.py (was caused by AO distance)
new KdTree property: max_depth
minor changes in realtime.py
CCFLAGS=-g -O3 -I../src
LDFLAGS=-L.. -pthread
RGBLIB_LDFLAGS=$(LDFLAGS) -lpng
SDL_CCFLAGS=$(CCFLAGS) $(shell sdl-config --cflags)
SDL_LDFLAGS=$(LDFLAGS) $(shell sdl-config --libs)
PYRIT_OBJS=$(shell ls ../*.o | grep -v raytracermodule)
all: spheres_shadow realtime
%.o: %.c
$(CXX) -c -o $@ $*.c
%.o: %.cc
$(CXX) -c -o $@ $*.cc $(CCFLAGS)
%: %.o
(cd .. && make)
$(CXX) -o $@ $(PYRIT_OBJS) $^ $(RGBLIB_LDFLAGS)
image.o: image.c
spheres_shadow.o: spheres_shadow.cc
spheres_shadow: spheres_shadow.o image.o
realtime: realtime.cc
$(CXX) -o $@ $@.cc $(SDL_CCFLAGS) -L.. $(PYRIT_OBJS) $(SDL_LDFLAGS)
clean:
rm -f spheres_shadow realtime *.o