I've been trying to convert this HLSL shader for a while now and have not yet been able to succeed as of yet so I decided to show the URL where I got the source here in case someone else wanted to give it a shot. What a parallax map does is warp a 2d texture to simulate self-occlusion based on a heightmap. This creates a very cool bump map style effect as seen below:


The HLSL source code and more information can be found on this page .


"you give me the reason, you give me control, i gave you my purity, my purity you stole, did you think i wouldn't recognize this compromise? am i just too stupid to realize?" - Trent Reznor (NiN) Yahoo Messager ID: SHATT3R3DFA1TH