docs: Étape 14 (shadows) finale — bilan DRAFT, ROADMAP §4.2, README roadmap
- docs/DRAFT.md: document vidé (bilan Étape 14 archivé dans l'historique git) - docs/ROADMAP.md §4.2: Shadows marqué [x] (Étape 14, mono-lumière PCF) - README.md: item 12 de la roadmap (shadow mapping) - cargo fmt --all sur les sources Étape 14
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
//! proving the depth comparison is applied per-pixel.
|
||||
//!
|
||||
//! Run with: `cargo run -p wsg-lib --example shadow_test`
|
||||
use glam::{Vec3};
|
||||
use glam::Vec3;
|
||||
use wsg_lib::resources::{Camera, Geometry};
|
||||
use wsg_lib::utils::WsgError;
|
||||
|
||||
@@ -30,7 +30,12 @@ fn box_geometry(hx: f32, hy: f32, hz: f32) -> Geometry {
|
||||
), // +Z
|
||||
(
|
||||
[0.0, 0.0, -1.0],
|
||||
[[hx, -hy, -hz], [-hx, -hy, -hz], [-hx, hy, -hz], [hx, hy, -hz]],
|
||||
[
|
||||
[hx, -hy, -hz],
|
||||
[-hx, -hy, -hz],
|
||||
[-hx, hy, -hz],
|
||||
[hx, hy, -hz],
|
||||
],
|
||||
), // -Z
|
||||
(
|
||||
[1.0, 0.0, 0.0],
|
||||
@@ -38,7 +43,12 @@ fn box_geometry(hx: f32, hy: f32, hz: f32) -> Geometry {
|
||||
), // +X
|
||||
(
|
||||
[-1.0, 0.0, 0.0],
|
||||
[[-hx, -hy, hz], [-hx, hy, hz], [-hx, hy, -hz], [-hx, -hy, -hz]],
|
||||
[
|
||||
[-hx, -hy, hz],
|
||||
[-hx, hy, hz],
|
||||
[-hx, hy, -hz],
|
||||
[-hx, -hy, -hz],
|
||||
],
|
||||
), // -X
|
||||
(
|
||||
[0.0, 1.0, 0.0],
|
||||
@@ -46,7 +56,12 @@ fn box_geometry(hx: f32, hy: f32, hz: f32) -> Geometry {
|
||||
), // +Y
|
||||
(
|
||||
[0.0, -1.0, 0.0],
|
||||
[[-hx, -hy, hz], [hx, -hy, hz], [hx, -hy, -hz], [-hx, -hy, -hz]],
|
||||
[
|
||||
[-hx, -hy, hz],
|
||||
[hx, -hy, hz],
|
||||
[hx, -hy, -hz],
|
||||
[-hx, -hy, -hz],
|
||||
],
|
||||
), // -Y
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user