MCPcopy Index your code
hub / github.com/JesproKing/bevy_pixelated_3d

github.com/JesproKing/bevy_pixelated_3d @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
36 symbols 37 edges 6 files 5 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bevy_pixelated_3d

A project to convert any 3d world into a game that looks like pixelart, with builtin outlines based on depth and normal textures.

image

This project makes use of a 3d Camera, with the PixelCamera component. To add objects to the 3d world, just add PIXEL_PERFECT_LAYERS (or RenderLayers::layer(0)) as a component. The resolution of the screen can be set with the constants at the top of pixel_camera.rs (there may be some hardcoded in the shader, not certain.)

You can either move the camera itself by editing the subpixel_pos on the PixelCamera, or adding a CameraTarget to an object, which will cause the camera to follow that object.

The current shader can have some quantization, which can be enabled by changing a single line. image

Good luck with your projects! I would love to see what you make with this, so feel free to ping me when you showcase it, or if you have any trouble understanding the code.

Core symbols most depended-on inside this repo

run
called by 1
src/pixelate/postprocessing.rs
main
called by 0
src/main.rs
rotate_rotatable
called by 0
src/main.rs
setup_mesh
called by 0
src/main.rs
rotate
called by 0
src/main.rs
update_settings
called by 0
src/main.rs
build
called by 0
src/player.rs
player_movement
called by 0
src/player.rs

Shape

Class 18
Function 12
Method 6

Languages

Rust100%

Modules by API surface

src/pixelate/pixel_cam.rs15 symbols
src/pixelate/postprocessing.rs9 symbols
src/main.rs8 symbols
src/player.rs4 symbols

For agents

$ claude mcp add bevy_pixelated_3d \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact