Skip to content

Commit 156d02f

Browse files
committed
[update] docs to match updates to examples.
1 parent 3f14d6a commit 156d02f

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

docs/tutorials/reflective-room.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: "Reflective Floor: Stencil‑Masked Planar Reflections"
33
document_id: "reflective-room-tutorial-2025-11-17"
44
status: "draft"
55
created: "2025-11-17T00:00:00Z"
6-
last_updated: "2026-01-16T00:00:00Z"
7-
version: "0.4.3"
6+
last_updated: "2026-01-19T00:00:00Z"
7+
version: "0.4.4"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "28.0.0"
1010
shader_backend_default: "naga"
1111
winit_version: "0.29.10"
12-
repo_commit: "87aa423aca541823f271101e5bac390f5ca54c42"
12+
repo_commit: "d0abc736e9d7308fdae80b2d0b568c4614f5a642"
1313
owners: ["lambda-sh"]
1414
reviewers: ["engine", "rendering"]
1515
tags: ["tutorial", "graphics", "stencil", "depth", "msaa", "mirror", "3d", "immediates", "wgpu", "rust"]
@@ -359,13 +359,15 @@ use lambda::render::scene_math::{compute_perspective_projection, compute_view_ma
359359
let camera = SimpleCamera { position: [0.0, 3.0, 4.0], field_of_view_in_turns: 0.24, near_clipping_plane: 0.1, far_clipping_plane: 100.0 };
360360
// View = R_x(-pitch) * T(-position)
361361
let pitch_turns = 0.10; // ~36 degrees downward
362-
let rot_x = lambda::math::matrix::rotate_matrix(lambda::math::matrix::identity_matrix(4,4), [1.0,0.0,0.0], -pitch_turns);
362+
let rot_x = lambda::math::matrix::rotate_matrix(lambda::math::matrix::identity_matrix(4,4), [1.0,0.0,0.0], -pitch_turns)
363+
.expect("rotation axis must be a unit axis vector");
363364
let view = rot_x.multiply(&compute_view_matrix(camera.position));
364365
let projection = compute_perspective_projection(camera.field_of_view_in_turns, width.max(1), height.max(1), camera.near_clipping_plane, camera.far_clipping_plane);
365366

366367
let angle_y = 0.12 * elapsed;
367368
let mut model = lambda::math::matrix::identity_matrix(4, 4);
368-
model = lambda::math::matrix::rotate_matrix(model, [0.0, 1.0, 0.0], angle_y);
369+
model = lambda::math::matrix::rotate_matrix(model, [0.0, 1.0, 0.0], angle_y)
370+
.expect("rotation axis must be a unit axis vector");
369371
model = model.multiply(&lambda::math::matrix::translation_matrix([0.0, 0.5, 0.0]));
370372
let mvp = projection.multiply(&view).multiply(&model);
371373

docs/tutorials/textured-cube.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: "Textured Cube: 3D Immediates + 2D Sampling"
33
document_id: "textured-cube-tutorial-2025-11-10"
44
status: "draft"
55
created: "2025-11-10T00:00:00Z"
6-
last_updated: "2026-01-16T00:00:00Z"
7-
version: "0.3.2"
6+
last_updated: "2026-01-19T00:00:00Z"
7+
version: "0.3.3"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "28.0.0"
1010
shader_backend_default: "naga"
1111
winit_version: "0.29.10"
12-
repo_commit: "9435ad1491b5930054117406abe08dd1c37f2102"
12+
repo_commit: "d0abc736e9d7308fdae80b2d0b568c4614f5a642"
1313
owners: ["lambda-sh"]
1414
reviewers: ["engine", "rendering"]
1515
tags: ["tutorial", "graphics", "3d", "immediates", "textures", "samplers", "rust", "wgpu"]
@@ -420,8 +420,10 @@ let angle_y_turns = 0.15 * self.elapsed; // yaw
420420
let angle_x_turns = 0.10 * self.elapsed; // pitch
421421

422422
let mut model = lambda::math::matrix::identity_matrix(4, 4);
423-
model = lambda::math::matrix::rotate_matrix(model, [0.0, 1.0, 0.0], angle_y_turns);
424-
model = lambda::math::matrix::rotate_matrix(model, [1.0, 0.0, 0.0], angle_x_turns);
423+
model = lambda::math::matrix::rotate_matrix(model, [0.0, 1.0, 0.0], angle_y_turns)
424+
.expect("rotation axis must be a unit axis vector");
425+
model = lambda::math::matrix::rotate_matrix(model, [1.0, 0.0, 0.0], angle_x_turns)
426+
.expect("rotation axis must be a unit axis vector");
425427

426428
let view = compute_view_matrix(camera.position);
427429
let projection = compute_perspective_projection(

0 commit comments

Comments
 (0)