IrisShaders / Iris

A modern shaders mod for Minecraft compatible with existing OptiFine shader packs
https://irisshaders.dev
GNU Lesser General Public License v3.0
3.34k stars 636 forks source link

Mipmap of block atlas texture inconsistent in deferred pipeline #2501

Open GeForceLegend opened 1 day ago

GeForceLegend commented 1 day ago

What happened?

While using block atlas texture in deferred pipeline, like texture.composite.colortex6 = minecraft:textures/atlas/blocks.png, mipmap level of block atlas texture changes with objects in last draw.

Screenshots

Directly set program output to texture(colortex6, texcoord, 4.0) in composite.fsh (colortex6 has been set to block atlas texture in shaders.properties). Hold a transparent block: Image Hold nothing: Image

Log output

Looks nothing useful in log

Minecraft Version

Minecraft 1.21.1

Iris Version

iris-fabric-1.8.0-beta.3+mc1.21.1.jar

Operating System

Windows 10

What is your GPU?

NVIDIA GeForce RTX 4070

Additional context

No response

IMS212 commented 2 hours ago

This should match Optifine behavior. The last mipmap state will be used for the texture.

Should mipmaps always be on?