diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-13 16:37:32 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-13 16:37:32 +0100 |
commit | 83077c23fe5f067b782c2ac25f2e9165861517d4 (patch) | |
tree | 309001e3df54697845981e4e469a60eee70b32e9 /client/src/scene_prepare.rs | |
parent | a976b24a54ae8c26759af18ddef849f336c6d4ec (diff) | |
download | weareserver-83077c23fe5f067b782c2ac25f2e9165861517d4.tar weareserver-83077c23fe5f067b782c2ac25f2e9165861517d4.tar.bz2 weareserver-83077c23fe5f067b782c2ac25f2e9165861517d4.tar.zst |
double sided meshes in client
Diffstat (limited to 'client/src/scene_prepare.rs')
-rw-r--r-- | client/src/scene_prepare.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/scene_prepare.rs b/client/src/scene_prepare.rs index 2b3e2e7..d26ed1c 100644 --- a/client/src/scene_prepare.rs +++ b/client/src/scene_prepare.rs @@ -97,6 +97,7 @@ pub struct RMeshPart { pub va_texcoord: Arc<Buffer>, pub tex_albedo: Arc<BindGroup>, pub tex_normal: Arc<BindGroup>, + pub double_sided: bool, } impl ScenePreparer { @@ -290,6 +291,7 @@ impl ScenePreparer { va_texcoord, tex_albedo, tex_normal, + double_sided: part.g_double_sided.is_some(), }), ); num_done += 1; |