Quantcast
Channel: Questions in topic: "hlsl"
Viewing all articles
Browse latest Browse all 206

2D Water top surface profile

$
0
0
I am trying to create the effect of the water surface thickness with a vertex-fragment shader. I am in a 3D game environment but It's a scroll view so a "2D" view. [Here][1] is a good tutorial of creating such effect in real 2D using fragment shader. But this can't be used in my case I think. For the moment I have only a plane were I apply refraction. ![refraction][2] And I want to apply the water thickness effect. But I don't know how to do it. I am not trying to create some water deformation/displacement using vertex for the moment, this is not the point. I don't know if it's possible with a simple quad maybe should I use an object like this. ![system][3] Here are some examples. ![1][4] ![2][5] ![4][6] ![rayman][7] I don't have any idea on how to create this effect. Thanks a lot ! [**EDIT**] Added Rayman water effect to have a better reference of the effect. [1]: http://rotatingcanvas.com/fragment-shader-to-simulate-water-surface-in-libgdx/ [2]: http://i.stack.imgur.com/0ane7.jpg [3]: http://i.stack.imgur.com/i8WUr.jpg [4]: http://i.stack.imgur.com/vTmHv.jpg [5]: http://i.stack.imgur.com/uvUJr.jpg [6]: http://i.stack.imgur.com/GRwXn.jpg [7]: http://i.stack.imgur.com/MrwXC.jpg

Viewing all articles
Browse latest Browse all 206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>