#bevy #wgpu #material #blockout

bevy_blockout

A utility package that provides blockout utilities

1 unstable release

Uses new Rust 2024

0.1.0 May 3, 2025

#686 in Game dev

Download history 102/week @ 2025-04-28 31/week @ 2025-05-05 13/week @ 2025-05-12

146 downloads per month

MIT license

125KB
235 lines

Bevy Blockout

demo

A utility package that provides blockout utilities. Currently this includes a triplanar blockout mesh that uses worldspace coordinates to texture meshes using a grid where 1 box equals 1 world unit.

[!NOTE]
This crate is in development. Expect changes.

Quick Start

commands.spawn((
    Mesh3d(meshes.add(Cuboid::from_size(Vec3::new(
        10., 4., 20.,
    )))),
    Transform::from_xyz(10.0, 2., 0.0),
    MeshMaterial3d(materials.add(ExtendedMaterial {
        base: StandardMaterial {
            base_color: SKY_400.into(),
            ..default()
        },
        extension: BlockoutMaterialExt::default(),
    })),
));

Dependencies

~18–25MB
~412K SLoC