diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-01-12 20:33:59 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-01-12 20:33:59 +0100 |
| commit | 2731017aa88bf6baaff787d7486d4248f9ca6ca0 (patch) | |
| tree | 2dc9250f5a861752f98b3849975f79b94c03c61a /world | |
| parent | 40032198a2167f81de37dba31b7e4f98c6270be7 (diff) | |
| download | weareserver-2731017aa88bf6baaff787d7486d4248f9ca6ca0.tar weareserver-2731017aa88bf6baaff787d7486d4248f9ca6ca0.tar.bz2 weareserver-2731017aa88bf6baaff787d7486d4248f9ca6ca0.tar.zst | |
double sided mesh attribute
Diffstat (limited to 'world')
| -rw-r--r-- | world/src/mesh.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/world/src/mesh.rs b/world/src/mesh.rs index f66be82..fd6b6ae 100644 --- a/world/src/mesh.rs +++ b/world/src/mesh.rs @@ -298,6 +298,13 @@ pub fn import_mesh( None }; + let g_double_sided = if p.material().double_sided() { + info!("double sided"); + Some(()) + } else { + None + }; + let mesh = store.set(&MeshPart { name, index, @@ -312,6 +319,7 @@ pub fn import_mesh( g_refractive_index, g_dispersion, g_unlit, + g_double_sided, va_position, va_normal, va_texcoord, |