From 9af9fc6e9981fbb582fad9f69ad6bb0d96856b5e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 7 Jan 2025 15:33:42 +0100 Subject: remove pbr prefix --- world/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'world/src') 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::>(); - 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() } -- cgit v1.2.3-70-g09d2