some more methods for easier debugging
can now handle entry/exit in resp. out of material

by looking at sign of dot product with normal