summaryrefslogtreecommitdiff
path: root/world/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'world/src/main.rs')
-rw-r--r--world/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/src/main.rs b/world/src/main.rs
index 7bcd021..b68b287 100644
--- a/world/src/main.rs
+++ b/world/src/main.rs
@@ -74,14 +74,14 @@ fn main() -> Result<()> {
.array_chunks::<3>()
.collect::<Vec<_>>();
- let mut tex_pbr_albedo = None;
+ let mut tex_albedo = None;
if let Some(tex) = p.material().pbr_metallic_roughness().base_color_texture() {
let s = tex.texture().source().source();
if let gltf::image::Source::View { view, mime_type } = s {
info!("albedo texture is of type {mime_type:?}");
let buf = &buffers[view.buffer().index()].0
[view.offset()..view.offset() + view.length()];
- tex_pbr_albedo = Some(store.set(buf)?);
+ tex_albedo = Some(store.set(buf)?);
}
}
@@ -101,7 +101,7 @@ fn main() -> Result<()> {
store.set(&AttributeArray(uv_x).write_alloc())?,
store.set(&AttributeArray(uv_y).write_alloc())?,
]),
- tex_pbr_albedo,
+ tex_albedo,
index: Some(store.set(&IndexArray(index).write_alloc())?),
..Part::default()
}