diff options
Diffstat (limited to 'shared/src/resources.rs')
-rw-r--r-- | shared/src/resources.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/src/resources.rs b/shared/src/resources.rs index b2708cb..54a34b8 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -64,6 +64,7 @@ pub struct MeshPart { pub g_double_sided: Option<()>, pub va_position: Option<Resource<Vec<Vec3A>>>, pub va_normal: Option<Resource<Vec<Vec3A>>>, + pub va_tangent: Option<Resource<Vec<Vec3A>>>, pub va_texcoord: Option<Resource<Vec<Vec2>>>, pub va_roughness: Option<Resource<Vec<f32>>>, pub va_metallic: Option<Resource<Vec<f32>>>, @@ -240,6 +241,7 @@ impl ReadWrite for MeshPart { write_kv_opt(w, b"g_double_sided", &self.g_double_sided)?; 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_tangent", &self.va_tangent)?; write_kv_opt(w, b"va_texcoord", &self.va_texcoord)?; write_kv_opt(w, b"va_roughness", &self.va_roughness)?; write_kv_opt(w, b"va_metallic", &self.va_metallic)?; @@ -272,6 +274,7 @@ impl ReadWrite for MeshPart { b"g_double_sided" => Ok(s.g_double_sided = Some(read_slice(v)?)), b"va_position" => Ok(s.va_position = Some(read_slice(v)?)), b"va_normal" => Ok(s.va_normal = Some(read_slice(v)?)), + b"va_tangent" => Ok(s.va_tangent = Some(read_slice(v)?)), b"va_texcoord" => Ok(s.va_texcoord = Some(read_slice(v)?)), b"va_roughness" => Ok(s.va_roughness = Some(read_slice(v)?)), b"va_metallic" => Ok(s.va_metallic = Some(read_slice(v)?)), |