You have to use version 4.3 dev 6 for this to work correctly. The CompositorEffects and the velocity map are amazing. I leave the file for free on my Patreon so you can try it out.
---
*EDIT: Change this line to this one, if you have any problems. Because the velocity vector has only 2 dimensions (SCREEN SPACE)
float velocity_mask = step(length(velocity),0.01);
float velocity_mask = step(length(velocity.rg),0.01);
___
DOWNLOAD THIS FILE FOR FREE
/ velocity-map-104334254
TAGS
#godot #godot4 #shaders