{"id":15651614,"url":"https://github.com/doonv/bevy_smooth_pixel_camera","last_synced_at":"2026-04-19T18:01:54.015Z","repository":{"id":205464193,"uuid":"714297889","full_name":"doonv/bevy_smooth_pixel_camera","owner":"doonv","description":"Smooth pixel-perfect camera for Bevy","archived":false,"fork":false,"pushed_at":"2026-04-17T18:20:07.000Z","size":188,"stargazers_count":40,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-17T20:27:33.100Z","etag":null,"topics":["bevy","bevy-plugin","camera","pixel","pixel-perfect","rust","smooth"],"latest_commit_sha":null,"homepage":"https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doonv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-04T13:56:04.000Z","updated_at":"2026-04-17T18:18:16.000Z","dependencies_parsed_at":"2024-02-15T11:29:47.338Z","dependency_job_id":"24ed803e-c737-4c7b-bf49-7ef8bd8730fc","html_url":"https://github.com/doonv/bevy_smooth_pixel_camera","commit_stats":null,"previous_names":["doonv/bevy_smooth_pixel_camera"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/doonv/bevy_smooth_pixel_camera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doonv%2Fbevy_smooth_pixel_camera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doonv%2Fbevy_smooth_pixel_camera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doonv%2Fbevy_smooth_pixel_camera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doonv%2Fbevy_smooth_pixel_camera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doonv","download_url":"https://codeload.github.com/doonv/bevy_smooth_pixel_camera/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doonv%2Fbevy_smooth_pixel_camera/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32016852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bevy","bevy-plugin","camera","pixel","pixel-perfect","rust","smooth"],"created_at":"2024-10-03T12:39:20.236Z","updated_at":"2026-04-19T18:01:54.009Z","avatar_url":"https://github.com/doonv.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bevy_smooth_pixel_camera\n\n[![crates.io](https://img.shields.io/crates/v/bevy_smooth_pixel_camera?style=flat-square)](https://crates.io/crates/bevy_smooth_pixel_camera)\n[![docs.rs](https://img.shields.io/docsrs/bevy_smooth_pixel_camera?style=flat-square)](https://docs.rs/bevy_smooth_pixel_camera)\n![GitHub branch check runs](https://img.shields.io/github/check-runs/doonv/bevy_smooth_pixel_camera/main?style=flat-square)\n[![Following released Bevy versions](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue?style=flat-square)](https://bevy.org/learn/quick-start/plugin-development/#main-branch-tracking)\n\n\u003c!-- WHEN UPDATING README WITH cargo rdme:\nUse --heading-base-level 0.\nComment out the intralink definitions at the bottom for `default_nearest` and smoothing.\n --\u003e\n\u003c!-- cargo-rdme start --\u003e\n\nA bevy plugin that adds a simple smooth pixel camera.\n\nIt works by rendering the main camera to a small viewport which is then rendered by a second camera spawned by the plugin.\nThis allows for hybrid rendering of both a pixelated world and high resolution assets on top.\n\nThis plugin has a [smoothing] feature, which makes the camera's movement appear smooth while keeping the world itself locked\nto a pixel grid. It works by moving the canvas in the opposite direction of the world camera's subpixel position. See the\n[`how_smoothing_works`] example for a demonstration of how it works behind the scenes.\n\n| Smoothing OFF                                                                   | Smoothing ON                                                                                    |\n| :-----------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: |\n| ![The camera is locked to the pixel grid, causing jagged motion][smoothing_off] | ![The camera moves smoothly while the world itself stays locked to a pixel grid.][smoothing_on] |\n\n## Usage\n\n1. Add the `bevy_smooth_pixel_camera` crate to your project.\n\n    ```sh\n    cargo add bevy_smooth_pixel_camera\n    ```\n\n2. Add the [`PixelCameraPlugin`] and set [`ImagePlugin`] to [`default_nearest`].\n\n    ```rust\n    use bevy::prelude::*;\n    use bevy_smooth_pixel_camera::prelude::*;\n    \n    App::new()\n        .add_plugins((\n            DefaultPlugins.set(ImagePlugin::default_nearest()),\n            PixelCameraPlugin,\n        ))\n        .run();\n    ```\n\n3. Add a [`PixelCamera`](https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/components/struct.PixelCamera.html) to your world.\n\n    ```rust\n    use bevy::prelude::*;\n    use bevy_smooth_pixel_camera::prelude::*;\n\n    fn setup(mut commands: Commands) {\n        commands.spawn(PixelCamera::from_size(ViewportScalingMode::PixelSize(4.0)));\n    }\n    ```\n\n4. That's it!\n\n## Features\n\n`picking` **(default)** - Enables [picking] through the viewport.\n\n## Bevy Compatibility\n\n| bevy   | bevy_smooth_pixel_camera |\n| ------ | ------------------------ |\n| 0.18.* | 0.4.x - [`main`]         |\n| 0.13.* | 0.3.0                    |\n| 0.12.* | 0.1.0 - 0.2.1            |\n\n[smoothing_off]: https://raw.githubusercontent.com/doonv/bevy_smooth_pixel_camera/main/assets/smoothing_off.avif\n[smoothing_on]: https://raw.githubusercontent.com/doonv/bevy_smooth_pixel_camera/main/assets/smoothing_on.avif\n[`how_smoothing_works`]: https://github.com/doonv/bevy_smooth_pixel_camera/blob/main/examples/how_smoothing_works.rs\n[`main`]: https://github.com/doonv/bevy_smooth_pixel_camera\n\n\u003c!-- [`default_nearest`]: ImagePlugin::default_nearest\n[smoothing]: components::PixelCamera::smoothing\n[picking]: bevy::picking --\u003e\n\n\u003c!-- cargo-rdme end --\u003e\n\n[`PixelCameraPlugin`]: https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/struct.PixelCameraPlugin.html\n[`ImagePlugin`]: https://docs.rs/bevy_image/latest/bevy_image/image/struct.ImagePlugin.html\n[`default_nearest`]: https://docs.rs/bevy_image/latest/bevy_image/struct.ImagePlugin.html#method.default_nearest\n[smoothing]: https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/components/struct.PixelCamera.html#structfield.smoothing\n[picking]: https://docs.rs/bevy/latest/bevy/picking/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoonv%2Fbevy_smooth_pixel_camera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoonv%2Fbevy_smooth_pixel_camera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoonv%2Fbevy_smooth_pixel_camera/lists"}