{"action":"created","issue":{"url":"https://api.github.com/repos/GoranM/bdx/issues/238","labels_url":"https://api.github.com/repos/GoranM/bdx/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/GoranM/bdx/issues/238/comments","events_url":"https://api.github.com/repos/GoranM/bdx/issues/238/events","html_url":"https://github.com/GoranM/bdx/pull/238","id":67984878,"number":238,"title":"(#235) - Basic lighting support.","user":{"login":"SolarLune","id":4733521,"avatar_url":"https://avatars.githubusercontent.com/u/4733521?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarLune","html_url":"https://github.com/SolarLune","followers_url":"https://api.github.com/users/SolarLune/followers","following_url":"https://api.github.com/users/SolarLune/following{/other_user}","gists_url":"https://api.github.com/users/SolarLune/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarLune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarLune/subscriptions","organizations_url":"https://api.github.com/users/SolarLune/orgs","repos_url":"https://api.github.com/users/SolarLune/repos","events_url":"https://api.github.com/users/SolarLune/events{/privacy}","received_events_url":"https://api.github.com/users/SolarLune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T01:46:57Z","updated_at":"2015-04-13T16:33:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoranM/bdx/pulls/238","html_url":"https://github.com/GoranM/bdx/pull/238","diff_url":"https://github.com/GoranM/bdx/pull/238.diff","patch_url":"https://github.com/GoranM/bdx/pull/238.patch"},"body":"Support for point, directional, and ambient lights. Energy works pretty much correctly for point lights; it doesn't do anything for directional, though.\r\n\r\nAmbient lighting can be changed through the scene's ambientLight() function, or by setting the scene's ambient color in the world panel.\r\n\r\nObjects can be drawn as shadeless by enabling it in the material panel in Blender.\r\n\r\nNote that I'm using Vector4f()s for colors to be consistent in setting colors, even though lights don't use the alpha components. Also, the Light() class's color() function has to take Vector4fs to overload the GameObject color() function correctly."},"comment":{"url":"https://api.github.com/repos/GoranM/bdx/issues/comments/92419542","html_url":"https://github.com/GoranM/bdx/pull/238#issuecomment-92419542","issue_url":"https://api.github.com/repos/GoranM/bdx/issues/238","id":92419542,"user":{"login":"SolarLune","id":4733521,"avatar_url":"https://avatars.githubusercontent.com/u/4733521?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarLune","html_url":"https://github.com/SolarLune","followers_url":"https://api.github.com/users/SolarLune/followers","following_url":"https://api.github.com/users/SolarLune/following{/other_user}","gists_url":"https://api.github.com/users/SolarLune/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarLune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarLune/subscriptions","organizations_url":"https://api.github.com/users/SolarLune/orgs","repos_url":"https://api.github.com/users/SolarLune/repos","events_url":"https://api.github.com/users/SolarLune/events{/privacy}","received_events_url":"https://api.github.com/users/SolarLune/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:33:35Z","updated_at":"2015-04-13T16:33:35Z","body":"Updated to not fail if there's no world set for the scene in Blender (as then there's no ambient color)."}}