From 2d6f319dfccf6339ed1a3bbfb003b8b2dde82383 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 19 Jan 2025 16:44:06 +0100 Subject: client: normal maps --- shared/src/resources.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared/src/resources.rs') 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>>, pub va_normal: Option>>, + pub va_tangent: Option>>, pub va_texcoord: Option>>, pub va_roughness: Option>>, pub va_metallic: Option>>, @@ -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)?)), -- cgit v1.2.3-70-g09d2