Skip to content

Commit 215b67d

Browse files
committed
These are not doc tests
1 parent cc85580 commit 215b67d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/bevy_camera/src/camera.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub struct MainPassResolutionOverride(pub UVec2);
137137
/// Suppose you have a camera with a square viewport, looking at a grid of digits.
138138
/// The camera's projection is configured so the entire grid is visible on screen.
139139
///
140-
/// ```
140+
/// ```text
141141
/// ┌─────────┐
142142
/// │ 0 1 2 3 │
143143
/// │ 4 5 6 7 │
@@ -151,7 +151,7 @@ pub struct MainPassResolutionOverride(pub UVec2);
151151
/// of the frustum would remain in place, so it would be the top-left quarter of the grid that gets projected to the camera's
152152
/// viewport.
153153
///
154-
/// ```
154+
/// ```text
155155
/// ┌──────────
156156
/// │ 0 1
157157
/// │
@@ -164,7 +164,7 @@ pub struct MainPassResolutionOverride(pub UVec2);
164164
/// middle of the camera's original view. Given that the camera was originally configured so that its view perfectly lined up
165165
/// with the grid, this means the top-left corner of the frustum would appear to be moved to the middle of the grid.
166166
///
167-
/// ```
167+
/// ```text
168168
/// │
169169
/// A B │
170170
/// │
@@ -176,7 +176,7 @@ pub struct MainPassResolutionOverride(pub UVec2);
176176
/// Now suppose that the sub view's offset was changed to `(1.0, 0.0)`. This would move the top-left corner of the view to the
177177
/// top-right corner of the grid, putting the grid off-screen.
178178
///
179-
/// ```
179+
/// ```text
180180
/// ┐
181181
/// │
182182
/// │
@@ -189,7 +189,7 @@ pub struct MainPassResolutionOverride(pub UVec2);
189189
/// position of the center of the view, rather than the top-left corner. We can do that by subtracting half the scale from it.
190190
/// With a scale of `0.5`, and a desired offset of `(0.5, 0.5)` for the center of the view, the offset to use would be `(0.25, 0.25)`.
191191
///
192-
/// ```
192+
/// ```text
193193
///
194194
/// 5 6
195195
///

0 commit comments

Comments
 (0)