{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/8379","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/8379/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/8379/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/8379/events","html_url":"https://github.com/mrdoob/three.js/issues/8379","id":141286085,"number":8379,"title":"Shadow rendering dependent on initial camera position (r75)","user":{"login":"killroy42","id":1201793,"avatar_url":"https://avatars.githubusercontent.com/u/1201793?v=3","gravatar_id":"","url":"https://api.github.com/users/killroy42","html_url":"https://github.com/killroy42","followers_url":"https://api.github.com/users/killroy42/followers","following_url":"https://api.github.com/users/killroy42/following{/other_user}","gists_url":"https://api.github.com/users/killroy42/gists{/gist_id}","starred_url":"https://api.github.com/users/killroy42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killroy42/subscriptions","organizations_url":"https://api.github.com/users/killroy42/orgs","repos_url":"https://api.github.com/users/killroy42/repos","events_url":"https://api.github.com/users/killroy42/events{/privacy}","received_events_url":"https://api.github.com/users/killroy42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-16T14:07:32Z","updated_at":"2016-03-17T12:22:37Z","closed_at":null,"body":"##### Description of the problem \r\n\r\nInitial camera position disables/enables shadow rendering, irrespective of subsequent camera positioning. I've tested various positions, and it seems to either be angle or distance related. Please note that I can move the camera to any position I like afterwards (timeout 0), and shadows will continue to render/not-render depending on the initial position.\r\n\r\nReproduction:\r\nCodePen: http://codepen.io/killroy/pen/YqpbOB?editors=0010\r\n\r\n```javascript\r\n// Shadow renders as expected\r\ncamera.position.set(280, 50, 244.16);\r\nscene.add(camera);\r\nsetTimeout(function() {\r\n  camera.position.set(280, 50, 244.17);\r\n}, 0);\r\n\r\n// Shadow is invisible\r\ncamera.position.set(280, 50, 244.17);\r\nscene.add(camera);\r\nsetTimeout(function() {\r\n  camera.position.set(280, 50, 244.17);\r\n}, 0);\r\n```\r\n\r\n##### Three.js version\r\n- [x] dev\r\n- [x] r75\r\n- [x] r74\r\n- [x] r73\r\n\r\n##### Browser\r\n\r\n- [ ] All of them\r\n- [x] Chrome\r\n- [x] Firefox\r\n- [ ] Internet Explorer\r\n\r\n##### OS\r\n\r\n- [ ] All of them\r\n- [x] Windows\r\n- [ ] Linux\r\n- [ ] Android\r\n- [ ] IOS\r\n\r\n##### Hardware Requirements (graphics card, VR Device, ...)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/197854688","html_url":"https://github.com/mrdoob/three.js/issues/8379#issuecomment-197854688","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/8379","id":197854688,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T12:22:37Z","updated_at":"2016-03-17T12:22:37Z","body":">>  I'm not sure we can support two objects, one with receiveShadows as true and the other as false sharing the same material... \r\n\r\n> Shadows on/off should work \"per geometry\" (not \"per material\")\r\n\r\nI agree... It's just that the current design doesn't support that and it'll require quite a bit of refactoring. Will have to give it a go at some point."}}