More GPU ray tracing
Worked a little bit more on my GPU ray tracer today, an hour or so. Spent most of the day cleaning and updating my CV and my portfolio page. However, I managed to get reflections working (again actually):
The tricky part is that GLSL doesn't support recursive functions, so reflections has to be done in a loop, which isn't much harder, unless you also want refractions, sss or anything else that requires more than one ray. In that case you'll have to look into creating some sort of stack with new rays. I don't think I'll go down that road, will most likely limit myself to diffuse surfaces if I am to work more with this.
Comments
No comments so far. You leave the first:
© 2008 Markus Johnsson