Working demo, D3D version.