Code Monkey home page Code Monkey logo

pixel-perfect-retro-camera's Introduction

Screenshot

After playing Celeste I was inspired to play around with something similar in Unity. It seems no one has made a pixel perfect retro camera yet so I decided to create this super simple system for rendering your Unity game at a reference resolution such as 320x180 and also retaining pixel perfect movement with no shimmering whilst also supporting other aspect ratios.

Simply drag the camera prefab into your scene or add the PixelCamera component to your main camera, all image effects are supported but may be processed at native resolution before downscaling.

Highly Recommended: If you wish to add pixel perfect movement to your existing camera alongside the rendering then add a SnapToPixel component to your camera's parent GameObject.

Use a perfect multiple of your target resolution as your reference resolution for best results.

pixel-perfect-retro-camera's People

Contributors

embyrdev avatar

Stargazers

 avatar well.james avatar Akira Ogawa avatar  avatar Muhammad Rizqi Nur avatar Ron Talman avatar  avatar  avatar  avatar  avatar Albert Tavares de Almeida avatar Joohun, Maeng avatar ハトネコエ avatar  avatar  avatar Jesse Talavera avatar Negitama avatar li5414 avatar Álvaro García León avatar tallship avatar tomori_hikage avatar fanhl avatar  avatar Riccardo Giorato avatar  avatar  avatar Matt Sylvia avatar  avatar Caleb Cornett avatar Rihard Novačan avatar Bryan Alvarado avatar kokeiro001 avatar pblc avatar Andreas Oehlke avatar  avatar Stephen Coley avatar Alper Keskin avatar  avatar Aurélien Drouet avatar Andreas avatar Jakub avatar DieElchkuh avatar zyzyx avatar Krzysztof Winczak avatar Mateusz Giza avatar Tracer avatar  avatar Persomatey avatar Joseph Gibbs avatar Stefan Härtel avatar Fiffe avatar Aaron Scott avatar  avatar  avatar Brandon Evans avatar Pat Farnach avatar Geoff avatar Hunter MacDonald avatar  avatar Fat Pug Studio avatar Rob Watling avatar Rondeau Clément avatar Jòan avatar Stefan Fibig avatar  avatar Taras ~TSK~ Anatsko avatar  avatar  avatar

Watchers

Brandon Evans avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.