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 /shared/src/resources.rs | |
parent | ecaa6a08527bad93c71bdb8211b6c2f8232ff878 (diff) | |
download | weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar.bz2 weareserver-1aca139c985cb71be90da1de6d65adc3c7d0d073.tar.zst |
KHR_materials_unlit
Diffstat (limited to 'shared/src/resources.rs')
-rw-r--r-- | shared/src/resources.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/src/resources.rs b/shared/src/resources.rs index 25dd965..7a52e85 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -57,6 +57,7 @@ pub struct MeshPart { pub g_refractive_index: Option<f32>, pub g_attenuation: Option<Vec3A>, pub g_dispersion: Option<f32>, + pub g_unlit: Option<()>, pub va_position: Option<[Resource<AttributeArray>; 3]>, pub va_normal: Option<[Resource<AttributeArray>; 3]>, pub va_texcoord: Option<[Resource<AttributeArray>; 2]>, @@ -183,6 +184,7 @@ impl ReadWrite for MeshPart { write_kv_opt(w, b"g_transmission", &self.g_transmission)?; write_kv_opt(w, b"g_alpha", &self.g_alpha)?; write_kv_opt(w, b"g_emission", &self.g_emission)?; + write_kv_opt(w, b"g_unlit", &self.g_unlit)?; write_kv_opt(w, b"va_position", &self.va_position)?; write_kv_opt(w, b"va_normal", &self.va_normal)?; write_kv_opt(w, b"va_texcoord", &self.va_texcoord)?; |