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:
Is it possible 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:
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).
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?
@Evgeni_Popov you rock as always !!!