#region #bevy #editor #painting #texture #system #u16

bevy_regions

A region painting system using a u16 texture

6 releases

0.15.0 Nov 30, 2024
0.14.1 Jul 15, 2024
0.13.5 Jun 17, 2024
0.13.4 May 9, 2024

#2204 in Game dev

Download history 6/week @ 2024-09-16 12/week @ 2024-09-23 10/week @ 2024-09-30 2/week @ 2024-10-14 4/week @ 2024-11-04 135/week @ 2024-11-25 16/week @ 2024-12-02 6/week @ 2024-12-09

157 downloads per month

MIT license

45KB
736 lines

Bevy Regions

Installing

cargo add bevy_regions

Bevy Versions

Regions 0.13.x -> Bevy 0.13.x

Run example

cargo run --example basic

Description

A very bevy-centric region painting plugin that takes advantage of entities, components and systems as much as possible to be as easy to understand and interact with as possible.

An example of it being used in the bevy_mesh_terrain_editor to allow the editor to paint regions

image

Texture Types

Region Map Texture The source of region index ! This uses a U8 texture which signifies the region index at any particular position.

Reference Shader Material

see https://github.com/bevyengine/bevy/blob/main/examples/shader/shader_material.rs

Editor (WIP)

https://github.com/ethereumdegen/bevy_mesh_terrain_editor

Dependencies

~25–36MB
~605K SLoC