diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-09 22:30:46 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-09 22:30:46 +0100 |
commit | 1aca139c985cb71be90da1de6d65adc3c7d0d073 (patch) | |
tree | f271d3fddcd05897a0cbfdca0e134233f213b6f4 /world/src/mesh.rs | |
parent | ecaa6a08527bad93c71bdb8211b6c2f8232ff878 (diff) | |
download | weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar.bz2 weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar.zst |
KHR_materials_unlit
Diffstat (limited to 'world/src/mesh.rs')
-rw-r--r-- | world/src/mesh.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/world/src/mesh.rs b/world/src/mesh.rs index 2c868ab..1f19c28 100644 --- a/world/src/mesh.rs +++ b/world/src/mesh.rs @@ -308,6 +308,17 @@ pub fn import_mesh( info!("name is {name:?}"); } + let g_unlit = if p + .material() + .extensions() + .map(|e| e.contains_key("KHR_materials_unlit")) + .unwrap_or(false) + { + Some(()) + } else { + None + }; + let mesh = store.set(&MeshPart { name, index, @@ -321,6 +332,7 @@ pub fn import_mesh( g_thickness, g_refractive_index, g_dispersion, + g_unlit, va_position, va_normal, va_texcoord, |