<font color="brown">edit: the more recent changes on the maya shader are now stored on this page
I recently got into learning Cg and I figured out most free shaders out there are max ones. So I thought it might be a good idea to release what I've been doing these last few months so that people can play with it
I tried to build the more generic shader I could, kinda 'multi-purpose'. It's mostly for testing or beauty renders, but it might be useful to someone. It's rather slow and unoptimized and only supports one lamp. I have been mostly experimenting the cg thing, not yet into efficiency
I'd like to hear about it tough.
Unfortunately I haven't been able to test it on a wide range of gpu cards, not to say 'none'. The cubemap sampling is using the texCUBElod(), wich needs PS3 (fp40 profile). I'm looking into getting it to work on previous cards using Isidoro's technique for texCUBEbias(). David Pain also mentioned me he had problem to get it running on his 8800, so any feedback is welcome
I personally own a 6800GS on my laptop and it's running just fine.http://www.mentalwarp.com/~brice/download/GenericBRDF_1-0.zip
I wrote a little tutorial. Any input on optimization, typos, better interface or behavior, dating, etc is welcomed.
Sorry for the huge images.
I had some great testing models thanks to Peppi and Pior
The whole stuff is released under creative commons by-sa license
Hope you like it