finally sort of working for volume rendering