I'm trying to create cartoonish weather visualisation in threejs, so I decided to first set up a basic scene with everything in place for a beautiful day, but I'm having trouble casting shadows. I copied the code for the lights from here on stackoverflow and the example works, but when I use it in my project it fails.

I want a light which is inside the box and cast shadows as if it was the sun. I used a point light because I've read somewhere that you have to use orthographic camera for directional lights to cast shadows?