Hi there,
i made a demo to showcase how to pass input to a NME shader:
-
You can click and drag on the Torus mesh. the click position is passed to the shader, which in turn is used as the origin for a sine animation with displacement.
(a small sphere is also placed there as a visual indicator) -
You can rotate the scene by dragging the background.
https://www.babylonjs-playground.com/#9BKDIN#14
Cheers
Danny