Skip to content

Commit

Permalink
fix plane custom uvs?
Browse files Browse the repository at this point in the history
  • Loading branch information
robtfm committed Oct 15, 2024
1 parent bf46600 commit 186ec66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/scene_runner/src/update_world/mesh_renderer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ pub fn update_mesh(
let mut mesh = Rectangle::default()
.mesh()
.build()
.rotated_by(Quat::from_rotation_z(-FRAC_PI_2));
.rotated_by(Quat::from_rotation_z(FRAC_PI_2))
.scaled_by(Vec3::new(1.0, -1.0, -1.0));
let Some(VertexAttributeValues::Float32x2(mesh_uvs)) =
mesh.attribute_mut(Mesh::ATTRIBUTE_UV_0)
else {
Expand Down

0 comments on commit 186ec66

Please sign in to comment.