{"action":"opened","issue":{"url":"https://api.github.com/repos/wowserhq/wowser/issues/132","repository_url":"https://api.github.com/repos/wowserhq/wowser","labels_url":"https://api.github.com/repos/wowserhq/wowser/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/wowserhq/wowser/issues/132/comments","events_url":"https://api.github.com/repos/wowserhq/wowser/issues/132/events","html_url":"https://github.com/wowserhq/wowser/issues/132","id":157359370,"number":132,"title":"Implement runtime M2 shader_id logic matching Wrath of the Lich King","user":{"login":"fallenoak","id":13418124,"avatar_url":"https://avatars.githubusercontent.com/u/13418124?v=3","gravatar_id":"","url":"https://api.github.com/users/fallenoak","html_url":"https://github.com/fallenoak","followers_url":"https://api.github.com/users/fallenoak/followers","following_url":"https://api.github.com/users/fallenoak/following{/other_user}","gists_url":"https://api.github.com/users/fallenoak/gists{/gist_id}","starred_url":"https://api.github.com/users/fallenoak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fallenoak/subscriptions","organizations_url":"https://api.github.com/users/fallenoak/orgs","repos_url":"https://api.github.com/users/fallenoak/repos","events_url":"https://api.github.com/users/fallenoak/events{/privacy}","received_events_url":"https://api.github.com/users/fallenoak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-28T22:21:24Z","updated_at":"2016-05-28T22:21:24Z","closed_at":null,"body":"The Wrath of the Lich King (and potentially earlier game versions) game client does not simply select shaders for M2s based on the ```shader_id``` value present in the on-disk ```.skin``` files. Rather, it's determined at runtime based on a combination of blending mode, render flags, texture mapping, transparency animations, and etc.\r\n\r\nThe resulting value for shader_id, a masked integer, is then checked to select the appropriate string for vertex and pixel shaders.\r\n\r\nTo get M2s to render properly, we should implement the same ```shader_id``` calculation and shader selection logic as the official game client."}}
{"actor":{"display_login":"fallenoak"}}