Iris icon indicating copy to clipboard operation
Iris copied to clipboard

Tangent and normal attributes aren't normalized in non-terrain programs

Open Luracasmus opened this issue 11 months ago • 0 comments

What happened?

Iris' patched attributes iris_Normal and at_tangent (the xyz components) are stored in 3x8 snorm XYZ format, which causes them to not be fully normalized when decoded. In terrain programs, the decoded directions are normalized by the patched shader code, but this does not seem to be the case elsewhere, even where necessary

Screenshots

No response

Log output

latest.log

Minecraft Version

Minecraft 1.21.5

Iris Version

iris-fabric-1.8.11+mc1.21.5.jar

Operating System

Linux Mint 22.1 Cinnamon

What is your GPU?

Nvidia Geforce RTX 4070

Additional context

https://discord.com/channels/237199950235041794/736928196162879510/1357802241477578803

Luracasmus avatar Apr 04 '25 20:04 Luracasmus