Limiting shadow length 2d

EDIT: found the answer. So there is indeed a shader to code shadow length limit

Everything is in this repo: GitHub - jess-hammer/2d-shadows-demo-godot: Demo of a shader to create directional 2D shadows of limited length!