diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-19 16:44:06 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-19 16:44:06 +0100 |
commit | 2d6f319dfccf6339ed1a3bbfb003b8b2dde82383 (patch) | |
tree | 4229b75a26d6e02d1eb15c84096c7020875e650e /shared/src/resources.rs | |
parent | 2c737d660cab38fdf4ff3e940395df396a75f959 (diff) | |
download | weareserver-2d6f319dfccf6339ed1a3bbfb003b8b2dde82383.tar weareserver-2d6f319dfccf6339ed1a3bbfb003b8b2dde82383.tar.bz2 weareserver-2d6f319dfccf6339ed1a3bbfb003b8b2dde82383.tar.zst |
client: normal maps
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)?)), |