Note Quite So Easy (1)
Without stencil to avoid double blendingof the shadow pixels:
Notice darks spotson the planar shadow.
Solution: Clear stencil to zero. Draw floor with stencilof one. Draw shadow if stencil is one. If shadow’sstencil test passes, set stencil to two. No double blending.