{"action":"opened","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/1128","repository_url":"https://api.github.com/repos/openfl/openfl","labels_url":"https://api.github.com/repos/openfl/openfl/issues/1128/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/1128/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/1128/events","html_url":"https://github.com/openfl/openfl/issues/1128","id":154592603,"number":1128,"title":"Scaling by shader","user":{"login":"cactusanctuary","id":1223518,"avatar_url":"https://avatars.githubusercontent.com/u/1223518?v=3","gravatar_id":"","url":"https://api.github.com/users/cactusanctuary","html_url":"https://github.com/cactusanctuary","followers_url":"https://api.github.com/users/cactusanctuary/followers","following_url":"https://api.github.com/users/cactusanctuary/following{/other_user}","gists_url":"https://api.github.com/users/cactusanctuary/gists{/gist_id}","starred_url":"https://api.github.com/users/cactusanctuary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cactusanctuary/subscriptions","organizations_url":"https://api.github.com/users/cactusanctuary/orgs","repos_url":"https://api.github.com/users/cactusanctuary/repos","events_url":"https://api.github.com/users/cactusanctuary/events{/privacy}","received_events_url":"https://api.github.com/users/cactusanctuary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T22:07:23Z","updated_at":"2016-05-12T22:07:23Z","closed_at":null,"body":"Hi, I'm putting in a request for a shader which scales the final pixel output of the application. This has been implemented in HaxeFlixel: [pull request](https://github.com/HaxeFlixel/flixel/pull/1826) and [original issue](https://github.com/HaxeFlixel/flixel/issues/1817). \r\n\r\nThe goal is to achieve smoothly blended pixels when displaying a small app resolution to a large display resolution. The problem with scaling up everything using `scaleX` and `scaleY` is that it leads to non-square pixels. Applying a shader as a post-processing effect should achieve square pixels by blending the \"in-between\" pixels.\r\n\r\n**Example**\r\nMy game's natural resolution is 384x240 pixels. I want to render it to 1080p, while preserving square pixels, so the game should be scaled up by 4.5, which would result in a final resolution of 1728x1080. I can then center and pillarbox the result myself. \r\n\r\n**Targets**\r\nI need it for native targets, specifically Windows and Mac.\r\nEventually Android would be nice too. \r\n\r\nIf anything is unclear, or need more specific info, please ask! :)"}}