{"action":"created","issue":{"url":"https://api.github.com/repos/GoranM/bdx/issues/436","labels_url":"https://api.github.com/repos/GoranM/bdx/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/GoranM/bdx/issues/436/comments","events_url":"https://api.github.com/repos/GoranM/bdx/issues/436/events","html_url":"https://github.com/GoranM/bdx/issues/436","id":106141027,"number":436,"title":"Bdx.matShaders.put Object disappears from view.","user":{"login":"slightfx","id":1431648,"avatar_url":"https://avatars.githubusercontent.com/u/1431648?v=3","gravatar_id":"","url":"https://api.github.com/users/slightfx","html_url":"https://github.com/slightfx","followers_url":"https://api.github.com/users/slightfx/followers","following_url":"https://api.github.com/users/slightfx/following{/other_user}","gists_url":"https://api.github.com/users/slightfx/gists{/gist_id}","starred_url":"https://api.github.com/users/slightfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightfx/subscriptions","organizations_url":"https://api.github.com/users/slightfx/orgs","repos_url":"https://api.github.com/users/slightfx/repos","events_url":"https://api.github.com/users/slightfx/events{/privacy}","received_events_url":"https://api.github.com/users/slightfx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-12T08:21:25Z","updated_at":"2015-11-02T14:15:01Z","closed_at":null,"body":"Hi \r\nWhen I use the shader on the scene it works.\r\nscene.filters.add(ShaderProgram.load(\"bdx/shaders/2d/default.vert\", \"bdx/shaders/2d/bloom.frag\"));\r\n\r\nBut when I apply this shader to a material, the object disappears from the scene.\r\nBdx.matShaders.put(\"Material1\", ShaderProgram.load(\"bdx/shaders/2d/default.vert\", \"bdx/shaders/2d/bloom.frag\"));\r\n\r\nI'm on a mac book air, so the opengl is a bit old :) could this be the problem?\r\nOr do I need to set the material to something special?"},"comment":{"url":"https://api.github.com/repos/GoranM/bdx/issues/comments/153028200","html_url":"https://github.com/GoranM/bdx/issues/436#issuecomment-153028200","issue_url":"https://api.github.com/repos/GoranM/bdx/issues/436","id":153028200,"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-11-02T14:15:01Z","updated_at":"2015-11-02T14:15:01Z","body":"Hmm. Well, it's something to think about - I think it's possible, we'd just have to change around how things work.\r\n\r\nIn any case, @slightfx, I think the core problem you had is solved (that using custom shaders makes objects disappear). If you build from current mainline BDX and create a new project (or just download the new shaders in the bdx/blender/bdx/gen/shaders/3d directory and use them), you should be able to use them and extend them as you wish with GLSL.\r\n\r\nWould you mind closing this?"}}