From b9cc7a40409aeb2abc84f45b80376885378e5699 Mon Sep 17 00:00:00 2001 From: e2002e Date: Fri, 30 Aug 2024 18:34:12 +0200 Subject: [PATCH] don't use mipmaps for 3D samplers. --- Sources/iron/object/Uniforms.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/iron/object/Uniforms.hx b/Sources/iron/object/Uniforms.hx index 26349699..d137dc8a 100644 --- a/Sources/iron/object/Uniforms.hx +++ b/Sources/iron/object/Uniforms.hx @@ -173,7 +173,7 @@ class Uniforms { var paramsSet = false; if (rt.raw.depth > 1) { // sampler3D - g.setTexture3DParameters(context.textureUnits[j], TextureAddressing.Clamp, TextureAddressing.Clamp, TextureAddressing.Clamp, TextureFilter.LinearFilter, TextureFilter.AnisotropicFilter, MipMapFilter.LinearMipFilter); + g.setTexture3DParameters(context.textureUnits[j], TextureAddressing.Clamp, TextureAddressing.Clamp, TextureAddressing.Clamp, TextureFilter.LinearFilter, TextureFilter.AnisotropicFilter, MipMapFilter.NoMipFilter); paramsSet = true; }