Răsfoiți Sursa

update readme

deltanedas 3 ani în urmă
părinte
comite
261fb18d17
1 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 6 2
      README.md

+ 6 - 2
README.md

@@ -4,13 +4,15 @@ An efficient binary mesh format which is both small and extremely fast to read.
 
 
 Textures are supported by loading them from an atlas and mapping mesh uvs to the region.
 Textures are supported by loading them from an atlas and mapping mesh uvs to the region.
 
 
+Comes with wgpu integration, if using bevy see the `[bevy_chair](https://lib.rs/bevy_chair)` loader plugin.
+
 # loading and drawing meshes with wgpu
 # loading and drawing meshes with wgpu
 
 
 ```rs
 ```rs
 let bytes = fs::read("chair.chr")?;
 let bytes = fs::read("chair.chr")?;
 // MyVertex implements the Vertex trait to specify what features are loaded into memory
 // MyVertex implements the Vertex trait to specify what features are loaded into memory
-let mesh = MeshReader::<MyVertex>::new(atlas, Some("fallback"))
-	.create(device, bytes)?;
+let mesh = MeshReader::new::<MyVertex>(&atlas, Some("fallback"))
+	.create::<MyVertex>(&device, &bytes)
 
 
 // in render pass code
 // in render pass code
 mesh.draw(&mut pass);
 mesh.draw(&mut pass);
@@ -29,3 +31,5 @@ Use the optimal settings for accuracy and size as you see fit.
 For minecraft-like meshes you can easily do short pos, uvs and normals as they are all low-detail.
 For minecraft-like meshes you can easily do short pos, uvs and normals as they are all low-detail.
 
 
 For more complex ones this will lose accuracy, so using floats may be prefered.
 For more complex ones this will lose accuracy, so using floats may be prefered.
+
+Vertex paint mode can be used for per-vertex colours and exported.