Firstly, I'm new to WebGL, OpenGL programming in general. I think that these tools will allow me to solve a problem, but I don't really know where to start.
My problem: Given a single origin, a target (triangle or mesh) and a list of many (thousands) of direction vectors, is there a way to use my GPU to count the number of rays that hit the target? Ideally I would like to use the power of my GPU to solve this problem, as it seems better suited to it than my CPU.
I am fairly sure I could write some code to do this using my cpu, but it would take quiet a long time to go through my vectors in a for loop.
Thanks