A high-resolution, high-precision beam-shaping system for high-power-laser systems is demonstrated. A liquid-crystal-on-silicon spatial light modulator is run in closed-loop to shape laser-beam amplitude and wavefront. An unprecedented degree of convergence is demonstrated, and important practical issues are discussed. Wavefront shaping for the applications in OMEGA EP laser is demonstrated, and other interesting examples are presented.