{"action":"opened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1429","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1429/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1429/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-js/issues/1429/events","html_url":"https://github.com/cocos2d/cocos2d-js/issues/1429","id":56213702,"number":1429,"title":"Sync GLProgramState to web engine","user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cocos2d/cocos2d-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-02T09:34:07Z","updated_at":"2015-02-02T09:34:07Z","closed_at":null,"body":"Shader usage is different from the native engine and web engine\r\n\r\n```\r\n// web\r\nvar program = node.getShaderProgram();\r\nvar location = program.getUniforLocationForName(\"xxx\");\r\nprogram.setUniformLocationWith1f(location, 1);\r\n```\r\n\r\n```\r\n// Native\r\nvar programstate = cc.GLProgramState.create(glProgram);\r\nprogramstate.setUniformFloat(\"xxx\", 1);\r\n```"}}