{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/6110","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/6110/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/6110/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/6110/events","html_url":"https://github.com/mrdoob/three.js/issues/6110","id":58435175,"number":6110,"title":"Reflective materials don't reflect new light sources","user":{"login":"scowalt","id":1100550,"avatar_url":"https://avatars.githubusercontent.com/u/1100550?v=3","gravatar_id":"","url":"https://api.github.com/users/scowalt","html_url":"https://github.com/scowalt","followers_url":"https://api.github.com/users/scowalt/followers","following_url":"https://api.github.com/users/scowalt/following{/other_user}","gists_url":"https://api.github.com/users/scowalt/gists{/gist_id}","starred_url":"https://api.github.com/users/scowalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scowalt/subscriptions","organizations_url":"https://api.github.com/users/scowalt/orgs","repos_url":"https://api.github.com/users/scowalt/repos","events_url":"https://api.github.com/users/scowalt/events{/privacy}","received_events_url":"https://api.github.com/users/scowalt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-21T02:01:18Z","updated_at":"2015-02-21T02:28:37Z","closed_at":"2015-02-21T02:28:37Z","body":"Hello,\r\n\r\nI'm writing to report what I think is a bug, although this behavior could be intended but counter-intuitive to me. (I'm fairly new to WebGL). Google and searching the issues here was not helpful, and I feel that this is non-intended behavior more than a conceptual misunderstanding.\r\n\r\n#### Steps to reproduce:\r\n  1. Create a mesh with a reflective material (i.e. `MeshLambertMaterial`) and add it to the scene\r\n  2. After this mesh has been added, create a new `PointLight` whose distance is within range of the previously created mesh and add it to the scene.\r\n\r\n#### Expected outcome:\r\n  - Lambert Material mesh reflects the new light source\r\n\r\n#### Actual outcome:\r\n  - Existing Lambert Material mesh doesn't reflect new light source. However, meshes added after the light source will reflect the light source.\r\n\r\n#### Example:\r\nI'm currently developing a three.js simulation called Tonal Starfield ([link](http://tonal-starfield.herokuapp.com/simulation/))([source](https://github.com/SIGMusic/tonal-starfield-server/tree/master/public/simulation)). Clicking on the screen spawns a new light source (object name Comet). The other spheres (Stars) on the screen don't reflect the new light source, however those just spawning in the back of the simulation will reflect the new light.\r\n\r\n#### Screenshot\r\n![example](https://cloud.githubusercontent.com/assets/1100550/6312325/5087594a-b93a-11e4-9768-8327c5e0d8b0.png)\r\n\r\n  - The red orb has the same location as a red PointLight with `distance === 0`\r\n  - All of the grey orbs are lambert material meshes that were added before the PointLight (they should be lit)\r\n  - The tiny red orbs in the background were added to the scene after the PointLight (they are lit appropriately)\r\n\r\n\r\n#### Other info:\r\n  - Tried with the latest build off the dev branch, developing on r70\r\n  - Firefox 35.0.1 & Chrome 40 on Windows 8.1, NVIDIA GeForce GTX 650 Ti\r\n\r\nThanks for your time, let me know if you need any more information."},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/75351382","html_url":"https://github.com/mrdoob/three.js/issues/6110#issuecomment-75351382","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/6110","id":75351382,"user":{"login":"scowalt","id":1100550,"avatar_url":"https://avatars.githubusercontent.com/u/1100550?v=3","gravatar_id":"","url":"https://api.github.com/users/scowalt","html_url":"https://github.com/scowalt","followers_url":"https://api.github.com/users/scowalt/followers","following_url":"https://api.github.com/users/scowalt/following{/other_user}","gists_url":"https://api.github.com/users/scowalt/gists{/gist_id}","starred_url":"https://api.github.com/users/scowalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scowalt/subscriptions","organizations_url":"https://api.github.com/users/scowalt/orgs","repos_url":"https://api.github.com/users/scowalt/repos","events_url":"https://api.github.com/users/scowalt/events{/privacy}","received_events_url":"https://api.github.com/users/scowalt/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T02:28:37Z","updated_at":"2015-02-21T02:28:37Z","body":"Yes, this definitely works, just tried it out. I appreciate the help, thank you!"}}