{"action":"created","issue":{"url":"https://api.github.com/repos/Contraz/demosys-py/issues/42","repository_url":"https://api.github.com/repos/Contraz/demosys-py","labels_url":"https://api.github.com/repos/Contraz/demosys-py/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Contraz/demosys-py/issues/42/comments","events_url":"https://api.github.com/repos/Contraz/demosys-py/issues/42/events","html_url":"https://github.com/Contraz/demosys-py/issues/42","id":347625957,"node_id":"MDU6SXNzdWUzNDc2MjU5NTc=","number":42,"title":"Shaders: Support loading separate shader files","user":{"login":"einarf","id":5418180,"node_id":"MDQ6VXNlcjU0MTgxODA=","avatar_url":"https://avatars0.githubusercontent.com/u/5418180?v=4","gravatar_id":"","url":"https://api.github.com/users/einarf","html_url":"https://github.com/einarf","followers_url":"https://api.github.com/users/einarf/followers","following_url":"https://api.github.com/users/einarf/following{/other_user}","gists_url":"https://api.github.com/users/einarf/gists{/gist_id}","starred_url":"https://api.github.com/users/einarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einarf/subscriptions","organizations_url":"https://api.github.com/users/einarf/orgs","repos_url":"https://api.github.com/users/einarf/repos","events_url":"https://api.github.com/users/einarf/events{/privacy}","received_events_url":"https://api.github.com/users/einarf/received_events","type":"User","site_admin":false},"labels":[{"id":572736877,"node_id":"MDU6TGFiZWw1NzI3MzY4Nzc=","url":"https://api.github.com/repos/Contraz/demosys-py/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Contraz/demosys-py/milestones/3","html_url":"https://github.com/Contraz/demosys-py/milestone/3","labels_url":"https://api.github.com/repos/Contraz/demosys-py/milestones/3/labels","id":3543098,"node_id":"MDk6TWlsZXN0b25lMzU0MzA5OA==","number":3,"title":"2.0.0","description":null,"creator":{"login":"einarf","id":5418180,"node_id":"MDQ6VXNlcjU0MTgxODA=","avatar_url":"https://avatars0.githubusercontent.com/u/5418180?v=4","gravatar_id":"","url":"https://api.github.com/users/einarf","html_url":"https://github.com/einarf","followers_url":"https://api.github.com/users/einarf/followers","following_url":"https://api.github.com/users/einarf/following{/other_user}","gists_url":"https://api.github.com/users/einarf/gists{/gist_id}","starred_url":"https://api.github.com/users/einarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einarf/subscriptions","organizations_url":"https://api.github.com/users/einarf/orgs","repos_url":"https://api.github.com/users/einarf/repos","events_url":"https://api.github.com/users/einarf/events{/privacy}","received_events_url":"https://api.github.com/users/einarf/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":6,"state":"open","created_at":"2018-08-02T23:35:04Z","updated_at":"2018-08-12T06:13:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-08-04T15:14:00Z","updated_at":"2018-08-12T06:13:59Z","closed_at":"2018-08-12T06:13:59Z","author_association":"CONTRIBUTOR","body":"Currently we rely on a single glsl file with preprocessors separating each shader type.\r\n\r\n```glsl\r\n#version 330\r\n\r\n#if defined VERTEX_SHADER\r\n\r\n// Vertex Shader\r\nin vec3 in_position;\r\nvoid main() {\r\n    gl_Position = vec4(in_position, 1.0);\r\n}\r\n\r\n#elif defined FRAGMENT_SHADER\r\n\r\n// Fragment Shader\r\nout vec4 fragColor;\r\nvoid main() {\r\n    fragColor = vec4(1.0);\r\n}\r\n\r\n#endif\r\n```\r\nThere are very good reasons to support mixing and matching different shaders and this would be fairly easy to achieve.\r\n\r\n```py\r\n# Single file\r\nshaders.load('test.glsl')\r\n# Multiple files\r\nshaders.load(vertex_shader='test.vert', fragment_shader='test.frag', .... etc)\r\n```"},"comment":{"url":"https://api.github.com/repos/Contraz/demosys-py/issues/comments/412321267","html_url":"https://github.com/Contraz/demosys-py/issues/42#issuecomment-412321267","issue_url":"https://api.github.com/repos/Contraz/demosys-py/issues/42","id":412321267,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjMyMTI2Nw==","user":{"login":"einarf","id":5418180,"node_id":"MDQ6VXNlcjU0MTgxODA=","avatar_url":"https://avatars0.githubusercontent.com/u/5418180?v=4","gravatar_id":"","url":"https://api.github.com/users/einarf","html_url":"https://github.com/einarf","followers_url":"https://api.github.com/users/einarf/followers","following_url":"https://api.github.com/users/einarf/following{/other_user}","gists_url":"https://api.github.com/users/einarf/gists{/gist_id}","starred_url":"https://api.github.com/users/einarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einarf/subscriptions","organizations_url":"https://api.github.com/users/einarf/orgs","repos_url":"https://api.github.com/users/einarf/repos","events_url":"https://api.github.com/users/einarf/events{/privacy}","received_events_url":"https://api.github.com/users/einarf/received_events","type":"User","site_admin":false},"created_at":"2018-08-12T06:13:59Z","updated_at":"2018-08-12T06:13:59Z","author_association":"CONTRIBUTOR","body":"Fixed"}}
{"actor":{"display_login":"einarf"}}