primitive meshes

This commit is contained in:
Jérôme Bousquié
2026-09-24 14:25:44 +02:00
parent 805babe53d
commit ab3f056dbb
36 changed files with 1531 additions and 808 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ impl wsg_lib::AppHandler for ShadowTest {
.add_entity_with_transform(
"ground",
"ground_mesh",
wsg_lib::math::Transform::identity(),
wsg_lib::core::Transform::identity(),
)
.unwrap();
@@ -112,7 +112,7 @@ impl wsg_lib::AppHandler for ShadowTest {
app.scene
.create_mesh("cube_mesh", box_geometry(0.5, 0.5, 0.5), Some("mat"))
.unwrap();
let mut cube_tf = wsg_lib::math::Transform::identity();
let mut cube_tf = wsg_lib::core::Transform::identity();
cube_tf.translation = Vec3::new(0.0, 0.5, 0.0);
app.scene
.add_entity_with_transform("cube", "cube_mesh", cube_tf)