diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-09 03:01:52 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-09 03:01:52 +0100 |
commit | c80016a9ef91da2362d6874c130941efcf36ac00 (patch) | |
tree | 715481f2b15fbcbaa13fd09d56064a4265faa9dd /shared/src/resources.rs | |
parent | 524f5d27020ca63d21cd5eca1120a1c71443e240 (diff) | |
download | weareserver-c80016a9ef91da2362d6874c130941efcf36ac00.tar weareserver-c80016a9ef91da2362d6874c130941efcf36ac00.tar.bz2 weareserver-c80016a9ef91da2362d6874c130941efcf36ac00.tar.zst |
add more gltf extensions
Diffstat (limited to 'shared/src/resources.rs')
-rw-r--r-- | shared/src/resources.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/src/resources.rs b/shared/src/resources.rs index 628fa1e..08fb6f5 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -51,6 +51,10 @@ pub struct MeshPart { pub g_transmission: Option<f32>, pub g_alpha: Option<f32>, pub g_emission: Option<Vec3A>, + pub g_thickness: Option<f32>, + pub g_refractive_index: Option<f32>, + pub g_attenuation: Option<Vec3A>, + pub g_dispersion: Option<f32>, pub va_position: Option<[Resource<AttributeArray>; 3]>, pub va_normal: Option<[Resource<AttributeArray>; 3]>, pub va_texcoord: Option<[Resource<AttributeArray>; 2]>, @@ -67,6 +71,7 @@ pub struct MeshPart { pub tex_transmission: Option<Resource<Image>>, pub tex_alpha: Option<Resource<Image>>, pub tex_emission: Option<Resource<Image>>, + pub tex_thickness: Option<Resource<Image>>, } #[derive(Debug, Default, Clone)] |