antarktikali / threejs-sunlight

A Three.js module that uses a directional light to imitate the sun light in a real world location
14 stars 9 forks source link

US latitude and longitude's #4

Open Garrettlynch opened 6 years ago

Garrettlynch commented 6 years ago

Does this library work with all latitude and longitude's? I am failing to get it to work with locations based in the US. For example passing it new THREE.Vector2( 41.21, 83.90 ) does not work.

antarktikali commented 6 years ago

Hi, sorry for the late reply. I haven't been maintaining this for a long time... Have you tried putting negative values? Western hemisphere should have negative longitude and southern hemisphere should have negative latitude.

Garrettlynch commented 6 years ago

Yes many thanks, that was the issue. I've got it working now.