0

I want to achieve the result like in the image below: enter image description here

I assume, solutiuon is:

  1. Cut the custom shape.

  2. Scale received shape.

  3. Apply blur to main texture.

  4. Draw the shape on top.

  5. Draw the real transparent drop on the top of shape.

My question is how to cut the texture in drop shape using vertex and/or fragment shader? Appreciate any ideas and suggestions abot the way to go.

Vitali Grabovski
  • 183
  • 1
  • 3
  • 14
  • 1
    This: http://stackoverflow.com/a/11614991/19679 and this: http://stackoverflow.com/a/11387757/19679 might be close to what you're looking for, with the replacement of the sphere there with your more complex shape. – Brad Larson May 10 '16 at 18:54
  • @BradLarson It seems close to my goal. I'll check. Thanks. – Vitali Grabovski May 10 '16 at 19:05
  • @BradLarson How do you blur background texture here http://stackoverflow.com/a/11614991/19679? – Vitali Grabovski May 10 '16 at 21:47
  • Using a separable Gaussian blur, described here: http://stackoverflow.com/questions/4804732/gaussian-filter-with-opengl-shaders/9592454#9592454 and here: http://www.sunsetlakesoftware.com/2013/10/21/optimizing-gaussian-blurs-mobile-gpu – Brad Larson May 10 '16 at 21:52

0 Answers0