Allright, now we have the rays working from a single array. Cleaned up the code a little bit too.
Now it's time to add another array/add in stream compaction.