Skip to main content

Crate bevy_pixel_art_shader

Crate bevy_pixel_art_shader 

Source

Re-exports§

pub use compositor::LowResPixelArtCamera;
pub use compositor::PixelArtCompositor;
pub use compositor::PixelArtCompositorPlugin;

Modules§

compositor

Structs§

HoldoutExtension
Material extension for holdout/occluder rendering. Writes depth to the depth buffer while outputting fully transparent color. The prepass writes alpha=0.0 so edge detection ignores holdout geometry.
PixelArtExtension
Material extension for pixel art rendering of 3D models. Integrates with Bevy’s full PBR lighting, then post-processes:
PixelArtShaderParams
GPU-side pixel art parameters. Must match the WGSL struct layout exactly.
PixelArtShaderPlugin

Functions§

default_pixel_art_palette
64-color pixel art palette (PICO-8 32 + DB32-inspired 32) for rendering. Returns (palette_colors array, active count).

Type Aliases§

HoldoutMaterial
Material type alias: StandardMaterial + HoldoutExtension. Invisible occluder that writes depth but outputs fully transparent color. Use on duplicated geometry in the low-res layer to occlude pixel art entities behind full-res scene geometry (terrain, walls).
PixelArtMaterial
Material type alias: StandardMaterial + PixelArtExtension.