Implementation using HLSL (High Level Shading Language)

Graphics hardware must support texture with 4 floats, such as Nvidia Geforce 6800.