Skip to content

Commit

Permalink
compress texture before the encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKhalow committed Jan 29, 2025
1 parent 7b91dfe commit bb05bf3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public async UniTask<Texture2DData> DeserializeAsync(SlicedOwnedMemory<byte> dat

private static SlicedOwnedMemory<byte> ToArray(Texture2DData data)
{
data.Asset.Compress(true);
var textureData = data.Asset.GetRawTextureData<byte>()!;

var meta = new Meta(data.Asset);
Expand Down

0 comments on commit bb05bf3

Please sign in to comment.