From 0f5da8d3e6dbd735f96a24eb63b2c1e5fd4569be Mon Sep 17 00:00:00 2001 From: John <6656977+StarArawn@users.noreply.github.com> Date: Mon, 27 Mar 2023 22:25:58 -0400 Subject: [PATCH] Add docs for y_sort. Co-authored-by: Rob Parrett --- src/map/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/map/mod.rs b/src/map/mod.rs index f9e02006..c41f9159 100644 --- a/src/map/mod.rs +++ b/src/map/mod.rs @@ -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, }