Skip to content

Commit

Permalink
Add docs for y_sort.
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Parrett <robparrett@gmail.com>
  • Loading branch information
StarArawn and rparrett authored Mar 28, 2023
1 parent 31358dd commit 0f5da8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ pub struct TilemapRenderSettings {
///
/// Smaller chunk sizes will benefit tilemaps which change frequently.
pub render_chunk_size: UVec2,
/// If true, uses the chunk's `z` and `y` values when sorting during rendering.
///
/// When using this option with layered tilemaps, `z` values for layers should be separated by
/// at least `1.0` units.
///
/// `render_chunk_size`'s `z` value should be `1` when using this for 3d isometric tilemaps.
pub y_sort: bool,
}

Expand Down

0 comments on commit 0f5da8d

Please sign in to comment.