I'm on an adventure with the reflection in the water.
I have 3 Render Targets:
- Down Target - where I draw everything below the water height
- Reflect Target - where I draw everything reflected
- Up Target - where I draw everything above the water height
Then I start Render with that order with:
spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
here is a screenshot:
Now my problem is to remove the down part from the reflection. By other words, render the down part only where is Water (remove the red area).
PS: I draw the water in the down target. Ignore the trees in the down target.
Any Advice?
Thanks ;-)