Iris Shaders

Iris Shaders

77M Downloads

Wrong glViewPort in shadowmapping when using with latest DH

GeForceLegend opened this issue ยท 1 comments

commented

What happened?

Also see GeForceLegend/SEUS_PTGI_GFME#72

If DH shadow is enabled with provided environment (latest Iris and DH in 1.21.1), before rendering DH shadow, glViewPort will be set to screen size, causing shadow program write to a screen sized part in the lower left part of shadowmapping, causing completely wrong shadow.

Image
Image

We can see there is an extra glViewPort which set viewport to screen size after setting it to shadowmapping size.

Image

Screenshots

No response

Log output

No response

Minecraft Version

1.21.1

Iris Version

iris-fabric-1.8.8+mc1.21.1.jar

Operating System

Windows10

What is your GPU?

RTX 4070

Additional context

No response

commented

Similar issue happening on 1.21.5, while the wrong glViewPort happens after rendering opaque objects in shadow mapping and before starting transparent DH terrain, which is causing ALL transparent object losing in shadow if DH shadow is enabled

Image