summaryrefslogtreecommitdiff
path: root/world/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-07 15:33:42 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-07 15:33:42 +0100
commit9af9fc6e9981fbb582fad9f69ad6bb0d96856b5e (patch)
tree7321528247a9f56776faff9de4c9c8fd97a1e531 /world/src/main.rs
parent4065dbe5b73839d4d3ed45a30bcc466ea414f3b5 (diff)
downloadweareserver-9af9fc6e9981fbb582fad9f69ad6bb0d96856b5e.tar
weareserver-9af9fc6e9981fbb582fad9f69ad6bb0d96856b5e.tar.bz2
weareserver-9af9fc6e9981fbb582fad9f69ad6bb0d96856b5e.tar.zst
remove pbr prefix
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()
}