gradient for 3d viewer