From: Peter N. <pn...@ya...> - 2000-10-01 09:09:46
|
Hi, I've been trying to do 2D bump mapping... I haven't figured out how to do it efficiently, I think I'm probably missing an obvious better way (besides just learning C, and proper math). Here are 2 bad attempts. The first one is faster, but I can't figure out how to move the computation out of the loop without making the choose() statement take forever. Also I think something is wrong because sometimes it looks raised and sometimes recessed. --peter nicolai __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ |