From c8860805f72f9eeb01b33e372678cab28004a4f8 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Melucci <163010988+AlejandroAlvarezMelucciDCL@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:30:30 -0300 Subject: [PATCH] chore: add comments to clarify texture mapping process (#228) * Added documentation for new properties. * Added uv formula to documentation --- proto/decentraland/common/texture.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proto/decentraland/common/texture.proto b/proto/decentraland/common/texture.proto index 5aab1ca9..ca037b1b 100644 --- a/proto/decentraland/common/texture.proto +++ b/proto/decentraland/common/texture.proto @@ -18,8 +18,12 @@ message Texture { string src = 1; optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear + + // Final uv = offset + (input_uv * tiling) + // Offset for texture positioning. optional Vector2 offset = 4; // default = Vector2.Zero - optional Vector2 tiling = 5; // default = Vector2.Zero + // Tiling multiplier for texture repetition. + optional Vector2 tiling = 5; // default = Vector2.One } message AvatarTexture {