{"action":"created","issue":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/7191","repository_url":"https://api.github.com/repos/highfidelity/hifi","labels_url":"https://api.github.com/repos/highfidelity/hifi/issues/7191/labels{/name}","comments_url":"https://api.github.com/repos/highfidelity/hifi/issues/7191/comments","events_url":"https://api.github.com/repos/highfidelity/hifi/issues/7191/events","html_url":"https://github.com/highfidelity/hifi/pull/7191","id":136257607,"number":7191,"title":"Better Shading Model and support fr Stingray material","user":{"login":"samcake","id":2230265,"avatar_url":"https://avatars.githubusercontent.com/u/2230265?v=3","gravatar_id":"","url":"https://api.github.com/users/samcake","html_url":"https://github.com/samcake","followers_url":"https://api.github.com/users/samcake/followers","following_url":"https://api.github.com/users/samcake/following{/other_user}","gists_url":"https://api.github.com/users/samcake/gists{/gist_id}","starred_url":"https://api.github.com/users/samcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samcake/subscriptions","organizations_url":"https://api.github.com/users/samcake/orgs","repos_url":"https://api.github.com/users/samcake/repos","events_url":"https://api.github.com/users/samcake/events{/privacy}","received_events_url":"https://api.github.com/users/samcake/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/highfidelity/hifi/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-25T02:38:38Z","updated_at":"2016-02-25T17:51:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/highfidelity/hifi/pulls/7191","html_url":"https://github.com/highfidelity/hifi/pull/7191","diff_url":"https://github.com/highfidelity/hifi/pull/7191.diff","patch_url":"https://github.com/highfidelity/hifi/pull/7191.patch"},"body":"- Work in progress don't merge yet\r\n\r\n- Now detect and load the StingRay materials in a FBX file correctly, load all the maps to produce a Physically Based Shading\r\n- Refactor the DeferredG_Buffer to support more information in the same footprint,\r\n- Added support for Emissive (material value and Texture) and removed the interpretation as lightmap.\r\n- Added support for Occlusion map (StingRay material only)\r\n- Made a simple debug tool to look at what is really produced through the DeferredBuffer allowing to look at the different components individually\r\n- Renamed Diffuse to Albedo\r\n- Renamed Specular to Metallic. Ketpt the color of the specular as Fresnel\r\n- Factorized a bunch of shader code to make it easier to maintain regarding the model draw pass. planning to consolidate in fewer shader variations.\r\n- Passed the materialKey to the shader so we can apply more elaborated logic on how to combine  material value with textures\r\n- In Scribe, added the keyword \"_SCRIBE_NULL\" allowing to be passed as a Func parameter when instanced to avoid defining a var\r\n\r\nTO DO:\r\n- Test\r\n- Fix for individual lights\r\n- Fix for lightmapped pixels\r\n- FIx the gloss map loading\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/comments/188902566","html_url":"https://github.com/highfidelity/hifi/pull/7191#issuecomment-188902566","issue_url":"https://api.github.com/repos/highfidelity/hifi/issues/7191","id":188902566,"user":{"login":"cozza13","id":464312,"avatar_url":"https://avatars.githubusercontent.com/u/464312?v=3","gravatar_id":"","url":"https://api.github.com/users/cozza13","html_url":"https://github.com/cozza13","followers_url":"https://api.github.com/users/cozza13/followers","following_url":"https://api.github.com/users/cozza13/following{/other_user}","gists_url":"https://api.github.com/users/cozza13/gists{/gist_id}","starred_url":"https://api.github.com/users/cozza13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozza13/subscriptions","organizations_url":"https://api.github.com/users/cozza13/orgs","repos_url":"https://api.github.com/users/cozza13/repos","events_url":"https://api.github.com/users/cozza13/events{/privacy}","received_events_url":"https://api.github.com/users/cozza13/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:51:38Z","updated_at":"2016-02-25T17:51:38Z","body":"Avatar face (philip's avatar ) is glossy. \r\n![capture](https://cloud.githubusercontent.com/assets/464312/13328763/58861382-dba5-11e5-8d51-a041ab2e586a.JPG)"}}