Skip to content

Commit

Permalink
Merge pull request #216 from e2002e/gi_clipmaps
Browse files Browse the repository at this point in the history
don't use mipmaps for 3D samplers.
  • Loading branch information
luboslenco authored Sep 3, 2024
2 parents 268a59e + b9cc7a4 commit 3053964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/iron/object/Uniforms.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3053964

Please sign in to comment.