Can i touch or tap or do something in shader effects?. Ex: i move the boat in the water and make wave during move.
Jump to content
The shader itself lives in its own little universe, unaware of Corona. It only has the information in the texture(s) and anything you've passed in through the kernel's userdata. So it doesn't speak the language of touches and taps.
That said, the data you supply can certainly provide this information, e.g. a point where a disturbance happened, its strength (which would be 0 by default), and the time elapsed, which could be used to spread a ripple. (Basically, adapting something like this.)
What sort of view do you have in mind? A shader-only effect probably is not enough when seen from the side, for instance, because of surface behaviors, but for top-down might be perfectly reasonable.
Community Forum Software by IP.Board