Shaders are fun! Looks a bit like "scary c++" at first but not too steep a learning-curve actually. No header files, pointers and the likes. Just a couple of maths functions and maths types (vec3, float etc). Pixel shaders return a "color" vector, vertex shaders a vertex "position" and "that's about it".
Re:WebGL Path Tracing
by hebejebelus on Wednesday August 10, 2011 @11:10AM
(#2868575)
Oh, really? That sounds eminently doable. Do you happen to have any fantastic resource for shaders?
Learn them together with WebGL -- I recommend "The Lessons" over at LearningWebGL.com very highly.
Re:WebGL Path Tracing
by hebejebelus on Wednesday August 10, 2011 @07:07PM
(#2870605)
That's a great site, thanks very much.
Well, there's always http://nehe.gamedev.net/ or http://www.lighthouse3d.com/tutorials/glsl-tutorial/
I learned the basics of OpenGL from NeHe many years ago, and while things have gotten better, I can't recommend the site anymore. It's all written for old-school OpenGL (3 and below) and is generally a compendium of what you shouldn't do when writing OGL code. I still love it, but it's a bad resource for people new to OGL.
What's better?
The Orange Book, Red Book, Lighthouse3d tutorials, and general experimentation. One nice thing about WebGL is that the cruft is largely gone, due to its ES parentage. This means that a lot of old tutorials are completely irrelevant, but that you can safely use just about everything without running into horrible practices. (Not that there aren't plenty of pitfalls left.)
Re:WebGL Path Tracing
by AndrewMoffat on Wednesday August 10, 2011 @12:09PM
(#2868862)
The OpenGL orange book has helped me tremendously http://www.amazon.com/gp/product/B002HMJYC4/ref=pd_lpo_k2_dp...
I think I should stop procrastinating now and actually do something with it. This is very exciting!