good implementation of the double scissor rendering method