Begin scanline conversion to work partially.
Make feeble attempts to solve overflowing of shading.