Skip to content

Commit

Permalink
zzre: Fix mipmaps not being used causing flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Sep 28, 2023
1 parent 71580b0 commit 76c5c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zzre.core/rendering/VeldridExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public static class VeldridExtensions
AddressModeU = addressMode,
AddressModeV = addressMode,
AddressModeW = addressMode,
Filter = filter
Filter = filter,
MaximumLod = 1000
};
}
3 changes: 2 additions & 1 deletion zzre/rendering/TextureAssetLoaderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static (Texture, Sampler) LoadTexture(this IAssetLoader<Texture> loader,
{
AddressModeU = addressModeU,
AddressModeV = ConvertAddressMode(texSection.vAddressingMode, addressModeU),
Filter = ConvertFilterMode(texSection.filterMode)
Filter = ConvertFilterMode(texSection.filterMode),
MaximumLod = 1000
};
var sampler = device.ResourceFactory.CreateSampler(samplerDescription);

Expand Down

0 comments on commit 76c5c89

Please sign in to comment.