Skip to content

Commit 8d2b877

Browse files
kwokcbld-kerley
authored andcommitted
Align the texture mag filter with the GLSL implementation
1 parent f611f6d commit 8d2b877

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/MaterialXRenderMsl/MetalTextureHandler.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
MTLSamplerMinMagFilter minmagFilter;
4646
MTLSamplerMipFilter mipFilter;
4747
mapFilterTypeToMetal(samplingProperties.filterType, samplingProperties.enableMipmaps, minmagFilter, mipFilter);
48-
// Magnification filters are more restrictive than minification
49-
[samplerDesc setMagFilter:MTLSamplerMinMagFilterLinear];
48+
[samplerDesc setMagFilter:minmagFilter];
5049
[samplerDesc setMinFilter:minmagFilter];
5150
[samplerDesc setMipFilter:mipFilter];
5251
[samplerDesc setMaxAnisotropy:16];

0 commit comments

Comments
 (0)