Skip to content

Commit

Permalink
added default gltf sampling to new loaded textures
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Aug 24, 2023
1 parent 13f4078 commit 35a0216
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ async Task<Texture2D> CheckMimeTypeAndLoadImage(GLTFImage image, Texture2D textu
break;
}

texture.wrapMode = TextureWrapMode.Repeat;
texture.wrapModeV = TextureWrapMode.Repeat;
texture.wrapModeU = TextureWrapMode.Repeat;
texture.filterMode = FilterMode.Trilinear;

await Task.CompletedTask;
return texture;
}
Expand Down

0 comments on commit 35a0216

Please sign in to comment.