{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/732","repository_url":"https://api.github.com/repos/bkaradzic/bgfx","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/732/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/732/events","html_url":"https://github.com/bkaradzic/bgfx/issues/732","id":143891313,"number":732,"title":"Adjusting alpha on texture","user":{"login":"evilduck41","id":18109636,"avatar_url":"https://avatars.githubusercontent.com/u/18109636?v=3","gravatar_id":"","url":"https://api.github.com/users/evilduck41","html_url":"https://github.com/evilduck41","followers_url":"https://api.github.com/users/evilduck41/followers","following_url":"https://api.github.com/users/evilduck41/following{/other_user}","gists_url":"https://api.github.com/users/evilduck41/gists{/gist_id}","starred_url":"https://api.github.com/users/evilduck41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilduck41/subscriptions","organizations_url":"https://api.github.com/users/evilduck41/orgs","repos_url":"https://api.github.com/users/evilduck41/repos","events_url":"https://api.github.com/users/evilduck41/events{/privacy}","received_events_url":"https://api.github.com/users/evilduck41/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-28T04:48:21Z","updated_at":"2016-03-28T22:26:34Z","closed_at":"2016-03-28T05:43:56Z","body":"I'm using bgfx for a simple sprite based app. Rendering cells of anims on 2d rectangles. I'm having a hard time figuring out what blender functions to use in the bgfx::setState so I can adjust the overall alpha level of the texture rendered (so I can fade items for example).\r\n\r\nBGFX_STATE_BLEND_ALPHA works fine for standard renders but when I try using BGFX_STATE_BLEND_FACTOR it seems to ignore the rgba value passed in.\r\n\r\nDo I also have to adjust the shader to accept the rbga value? I am currently using the vs_deferred_geom and fs_deferred_geom shaders since I don't need lighting and they seem to work for a texture. "},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/202603724","html_url":"https://github.com/bkaradzic/bgfx/issues/732#issuecomment-202603724","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/732","id":202603724,"user":{"login":"evilduck41","id":18109636,"avatar_url":"https://avatars.githubusercontent.com/u/18109636?v=3","gravatar_id":"","url":"https://api.github.com/users/evilduck41","html_url":"https://github.com/evilduck41","followers_url":"https://api.github.com/users/evilduck41/followers","following_url":"https://api.github.com/users/evilduck41/following{/other_user}","gists_url":"https://api.github.com/users/evilduck41/gists{/gist_id}","starred_url":"https://api.github.com/users/evilduck41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilduck41/subscriptions","organizations_url":"https://api.github.com/users/evilduck41/orgs","repos_url":"https://api.github.com/users/evilduck41/repos","events_url":"https://api.github.com/users/evilduck41/events{/privacy}","received_events_url":"https://api.github.com/users/evilduck41/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T22:26:33Z","updated_at":"2016-03-28T22:26:33Z","body":"Ok thanks"}}