{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7965","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7965/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7965/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7965/events","html_url":"https://github.com/mrdoob/three.js/issues/7965","id":126715223,"number":7965,"title":"directional light pointing doesn't seem to be working","user":{"login":"JamesLawrenceGSI","id":16665360,"avatar_url":"https://avatars.githubusercontent.com/u/16665360?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesLawrenceGSI","html_url":"https://github.com/JamesLawrenceGSI","followers_url":"https://api.github.com/users/JamesLawrenceGSI/followers","following_url":"https://api.github.com/users/JamesLawrenceGSI/following{/other_user}","gists_url":"https://api.github.com/users/JamesLawrenceGSI/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLawrenceGSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLawrenceGSI/subscriptions","organizations_url":"https://api.github.com/users/JamesLawrenceGSI/orgs","repos_url":"https://api.github.com/users/JamesLawrenceGSI/repos","events_url":"https://api.github.com/users/JamesLawrenceGSI/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLawrenceGSI/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Help%20(please%20use%20Stackoverflow)","name":"Help (please use Stackoverflow)","color":"cfcfcf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-14T18:18:56Z","updated_at":"2016-01-14T19:45:22Z","closed_at":"2016-01-14T18:30:51Z","body":"I've posted on SO but for the last 2 weeks haven't had a response so I'm trying here instead. \r\n\r\nI can't seem to get directional lights to point at anything other than 0,0,0 in r73:\r\n\r\n    var directionalLight = new THREE.DirectionalLight( 0xffffff );\r\n\tdirectionalLight.position.set( 10, 10, 10 );\r\n\tdirectionalLight.target.position.set(100, 100, 100);\r\n\tdirectionalLight.intensity = 0.5;\r\n\tdirectionalLight.castShadow = true;\r\n\tdirectionalLight.shadowCameraLeft = -30;\r\n\tdirectionalLight.shadowCameraRight = 30;\r\n\tdirectionalLight.shadowCameraTop = 30;\r\n\tdirectionalLight.shadowCameraBottom = -30;\r\n\tdirectionalLight.shadowCameraNear = 0;\r\n\tdirectionalLight.shadowCameraFar = 100;\r\n\tscene.add(directionalLight);\r\n\r\n\tvar helper = new THREE.DirectionalLightHelper( directionalLight );\r\n\tscene.add(helper);\r\n\r\nThe helper shows the light is still pointing at 0,0,0, despite the call to target.position.set().\r\n\r\nTo create a shadow rendering range system, I wanted the directional light to follow the user camera, I can't do this and keep the angle constant if the target function isn't working.  Any ideas?"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/171756920","html_url":"https://github.com/mrdoob/three.js/issues/7965#issuecomment-171756920","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7965","id":171756920,"user":{"login":"WestLangley","id":1000017,"avatar_url":"https://avatars.githubusercontent.com/u/1000017?v=3","gravatar_id":"","url":"https://api.github.com/users/WestLangley","html_url":"https://github.com/WestLangley","followers_url":"https://api.github.com/users/WestLangley/followers","following_url":"https://api.github.com/users/WestLangley/following{/other_user}","gists_url":"https://api.github.com/users/WestLangley/gists{/gist_id}","starred_url":"https://api.github.com/users/WestLangley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestLangley/subscriptions","organizations_url":"https://api.github.com/users/WestLangley/orgs","repos_url":"https://api.github.com/users/WestLangley/repos","events_url":"https://api.github.com/users/WestLangley/events{/privacy}","received_events_url":"https://api.github.com/users/WestLangley/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T19:45:22Z","updated_at":"2016-01-14T19:45:22Z","body":"@JamesLawrenceGSI Also, https://github.com/mrdoob/three.js/issues/5555#issuecomment-61390208 may be related to your issue."}}