[NME] Is interactable shader available in NME?

I want to make an interactable shader to show the attack effect on the shield surface (like this: Shader - Shadertoy BETA).

But i didn’t find any mouse input in NME:
image

Is it possible in NME?

There’s no mouse input but you can instead use a Vector2 and in the js code set the values of the Vector2 equal to the mouse coordinates (in a scene.onBeforeRenderObservable observable for eg).

3 Likes

Ok, this should be the correct way, thanks.

Sorry, i’m new to shader technique.
And i’m still comfused about this shader effect, how can i use this buffer feature (which makes the multi-drop effect possible) in NME or BABYLON?

You could use the same technic than in this PG:

That would give you something like:

5 Likes

@Evgeni_Popov you rock as always !!!

1 Like