Skip to content

Commit

Permalink
Fix unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-xr committed Sep 18, 2024
1 parent e9cf75d commit fb94deb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 7 additions & 1 deletion examples/hello/hello.fs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ let init (_args: array<string>) =
// let renderModel = Model.file ("ExplodingBarrel.glb") |> Graphics.Scene3D.model |> Transform.scale 0.5f;
let modify = Model.modify (MeshSelector.all ()) (MeshOverride.material (textureMaterial));
let renderModel = Model.file ("vr_glove_model2.glb") |> modify |> Graphics.Scene3D.model |> Transform.scale 5f;
// let renderModel = Model.file ("shark.glb") |> Graphics.Scene3D.model |> Transform.scale 0.001f;

// let renderModel =
// "shark.glb"
// |> Model.file
// |> Graphics.Scene3D.model
// |> Transform.scale 0.001f;

group([|
material (textureMaterial, [|
cylinder() |> Transform.translateY -1.0f;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ fn process_node(

let scale = 1.0;

let tx_len = tex_coords.len();
let slice = &tex_coords[0..5].to_vec();

let vertices: Vec<VertexPositionTexture> = positions
.iter()
.zip(tex_coords.into_iter())
Expand All @@ -127,15 +124,12 @@ fn process_node(
})
.collect();
println!(
"-- Mesh: {:?} vertices: {} indices: {} texcoords: {}",
"-- Mesh: {:?} vertices: {} indices: {}",
mesh.name(),
vertices.len(),
indices.len(),
tx_len,
indices.len()
);

println!("First few texcoords: {:?}", slice);

// Parse material
let material = primitive.material();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use cgmath::Matrix4;
use fable_library_rust::NativeArray_::Array;
use fable_library_rust::String_::LrcStr;
use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit fb94deb

Please sign in to comment.