How to fix jagged shadows on terrain?

same issue, in my case, i solved that from raytracing


sorry for language.

its very long time ago question, but i can’t find the way to solve in 2022. so i leave a answer in my case