preparation for heightfield diffraction shader