Stencil Dissolves
Algorithm
- Clear the stencil buffer to 0
- Store 1s in stencil buffer where second scene is visible(can use geometry as well as bitmap)
- Draw first scene where stencil is 0
- Draw second scene where stencil is 1
Don’t have to clear stencil if new dissolve pattern is a superset of the old pattern