Initial commit for kd-tree
Fix of function for checking if object3d intersects voxel
uncomment
Working commit
Working commit
Using kd-tree for shadow rays
Optimized shadows calculation (stop traversing of kd-tree when shadow ray intersects at least one of scene objects)
Boosting performance a bit
Tmp commit
Experimental commit. Boost performance
Changed max depth of kd-tree and threshold of objects count per leaf
Reduce overhead in memory usage (avoid calls of calloc(..) and free(..) on intermediate steps of building the kd-tree)
Tmp commit
If find intersection in nearest voxel - don't trace far voxel
Merge pull request #2 from lagodiuk/kdtree

Using simple kd-tree for boosting speed of finding nearest object, which intersects with ray - complexity is O(log(N))