Skip to content

Commit

Permalink
chore: add comments to clarify texture mapping process (#228)
Browse files Browse the repository at this point in the history
* Added documentation for new properties.

* Added uv formula to documentation
  • Loading branch information
AlejandroAlvarezMelucciDCL authored Nov 11, 2024
1 parent 8d83e14 commit c886080
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proto/decentraland/common/texture.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c886080

Please sign in to comment.