Make a 3D scene look like crisp pixel art, and keep it crisp while the camera moves. PixelDepth renders your Godot 4 scene at a low resolution, scales it up by whole pixels, snaps the camera to the pixel grid and adds outlines, edge highlights and an optional palette.

It is built for the Compatibility renderer, the one Godot uses for web exports, mobile and older GPUs (tested here: web export). Try it above: it is the real addon running in your browser. Press 1 to switch the snapped camera off and watch the edges crawl, press it again and they stand still.

What you get

  • Snapped camera, no shimmer. The camera moves in whole low-res pixels, so static objects do not flicker. Sub-pixel smoothing keeps the scrolling smooth anyway.
  • Depth outline. A one-pixel line around silhouettes, with no false lines on slopes or flat faces.
  • Edge highlight. A lighter line on roof ridges and box edges.
  • Colour pass. Bands per channel, or your own palette image (up to 64 colours), with optional ordered dither.
  • Two nodes. Add a PixelDepthView, put your 3D scene and a PixelDepthCamera under it, run. No project setting changes.
  • Demo scene with every setting as a toggle, a README and headless tests.

Install in 3 steps

  1. Copy addons/pixeldepth into your project.
  2. Project Settings > Plugins: enable PixelDepth.
  3. Add a PixelDepthView (Full Rect), put your 3D scene under it with one PixelDepthCamera. Run.

Tested

Godot 4.7.2, Compatibility renderer: 27 headless tests, and a web export measured in a browser. Visible shimmer during a slow pan: 0.00% of pixels per frame with the snapped camera, about 2% without. Palette mode: 0 of 57,600 sampled pixels outside the palette. Forward+ and Mobile renderers are not tested yet.

Limits

  • Orthographic camera only.
  • The outline is depth based: faces at the same depth (a door flush with a wall) get no line between them.
  • Pick a resolution that divides your window for a borderless picture (320 x 180 fills 1280 x 720 and 1920 x 1080).

Licence: use it in any number of your own games, free or commercial. Not for resale as an asset.

More lanternkit tools

  • Autotile 3D: paint GridMap levels with terrain rules in Godot 4
  • HordeKit: thousands of enemies in pure GDScript, flow field pathing
  • Tileset Forge: 5 tiles in, a full 47-tile autotile set with a Godot 4 terrain out (browser)
Published 26 days ago
StatusReleased
CategoryTool
PlatformsHTML5
Authorlanternkit
Made withGodot
Tags3D, addon, camera, gdscript, Godot, godot-4, Low-poly, Pixel Art, Retro, Shaders
AI DisclosureAI Assisted, Code, Text

Purchase

Buy Now$6.99 USD or more

In order to download this tool you must purchase it at or above the minimum price of $6.99 USD. You will get access to the following files:

PixelDepth 1.0.0 (addon, demo, tests) 20 kB
Version 1.0.0

Development log

Leave a comment

Log in with itch.io to leave a comment.