<p dir="auto">Hi.Is it possible to add a new light after the scene setup?I have a scene and i want the user to add light in a selected position by pressing a button.I have tried it and it's not working.</p>
<p dir="auto">HI,</p>
<p dir="auto">I'm having some difficulty while trying to add a light after some time to the scene. If the light is created in the init() function there is no issue, but as soon as you create it later it makes everything look black.</p>
<p dir="auto">Here is a sample script showing this issue: <a href="http://jsfiddle.net/GKCx6/1/" rel="nofollow">http://jsfiddle.net/GKCx6/1/</a></p>
<p dir="auto">there is a variable "dynamic_light" that you can set to false to show a working version (light created in init). If dynamic_light is set to true you will have to click "add light" to see the issue.</p>
<p dir="auto">I hope i'm not missing something obvious.</p>