{"action":"created","issue":{"url":"https://api.github.com/repos/PistonDevelopers/piston/issues/1115","repository_url":"https://api.github.com/repos/PistonDevelopers/piston","labels_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/1115/comments","events_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/1115/events","html_url":"https://github.com/PistonDevelopers/piston/issues/1115","id":176176428,"number":1115,"title":"Nearest texture filtering doesn't work","user":{"login":"VelocityRa","id":6632271,"avatar_url":"https://avatars.githubusercontent.com/u/6632271?v=3","gravatar_id":"","url":"https://api.github.com/users/VelocityRa","html_url":"https://github.com/VelocityRa","followers_url":"https://api.github.com/users/VelocityRa/followers","following_url":"https://api.github.com/users/VelocityRa/following{/other_user}","gists_url":"https://api.github.com/users/VelocityRa/gists{/gist_id}","starred_url":"https://api.github.com/users/VelocityRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VelocityRa/subscriptions","organizations_url":"https://api.github.com/users/VelocityRa/orgs","repos_url":"https://api.github.com/users/VelocityRa/repos","events_url":"https://api.github.com/users/VelocityRa/events{/privacy}","received_events_url":"https://api.github.com/users/VelocityRa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PistonDevelopers/piston/labels/discussion","name":"discussion","color":"bfe5bf"},{"url":"https://api.github.com/repos/PistonDevelopers/piston/labels/draft","name":"draft","color":"e11d21"},{"url":"https://api.github.com/repos/PistonDevelopers/piston/labels/medium","name":"medium","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-10T12:05:55Z","updated_at":"2016-10-14T18:21:32Z","closed_at":null,"body":"I can't get nearest texture filtering to work. I want sharp edges, but despite me setting the texture\r\nwith the relevant settings: ![](http://image.prntscr.com/image/446d060b68be4fb1a4dae0e5d6c3e8ac.png), I get blurry edges when rendering while scaling the Transform like so: ![](http://image.prntscr.com/image/617a975f714546148e0fd8f1ca6e91fb.png). \r\n\r\nHere's how I initialize the Image in case it's relevant:\r\n![](http://image.prntscr.com/image/5e342c1ac1544c68bad32d65fa826883.png)\r\n\r\nOr am I not supposed to scale it like that?\r\n\r\n[Here](http://image.prntscr.com/image/8278ca8854514757b112765b808300de.png)'s the output (the white randomly placed pixels aren't suppossed to be blurry, but sharp.\r\n\r\nAll the code is here in case you need to take a look: https://github.com/VelocityRa/rustboy\r\nThis was tested in the latest version of every package used, locally."},"comment":{"url":"https://api.github.com/repos/PistonDevelopers/piston/issues/comments/253881910","html_url":"https://github.com/PistonDevelopers/piston/issues/1115#issuecomment-253881910","issue_url":"https://api.github.com/repos/PistonDevelopers/piston/issues/1115","id":253881910,"user":{"login":"Eroc33","id":599099,"avatar_url":"https://avatars.githubusercontent.com/u/599099?v=3","gravatar_id":"","url":"https://api.github.com/users/Eroc33","html_url":"https://github.com/Eroc33","followers_url":"https://api.github.com/users/Eroc33/followers","following_url":"https://api.github.com/users/Eroc33/following{/other_user}","gists_url":"https://api.github.com/users/Eroc33/gists{/gist_id}","starred_url":"https://api.github.com/users/Eroc33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eroc33/subscriptions","organizations_url":"https://api.github.com/users/Eroc33/orgs","repos_url":"https://api.github.com/users/Eroc33/repos","events_url":"https://api.github.com/users/Eroc33/events{/privacy}","received_events_url":"https://api.github.com/users/Eroc33/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T18:21:32Z","updated_at":"2016-10-14T18:21:32Z","body":"It looks like currently `Gfx2d` has one unchangeable sampler per instance, but given the `Texture` api it seems like each `Texture` should contain a sampler (or an optional sampler and a default in `Gfx2d`), since that seems to be the only way to have a per texture filter."}}
{"actor":{"display_login":"Eroc33"}}