Can't load a shader that is already built upon the core profile
JustSimplyKyle opened this issue ยท 3 comments
What happened?
trying to load atlas shader
https://www.curseforge.com/minecraft/customization/atlas-shader-by-huajijun/
Screenshots
No response
Relevant log output
[23:30:58] [Render thread/WARN]: Custom blending mode directives are not supported, ignoring blend directive for blend.gbuffers_skybasic
[23:30:58] [Render thread/WARN]: Custom blending mode directives are not supported, ignoring blend directive for blend.gbuffers_weather
[23:30:58] [Render thread/WARN]: Unrecognized internal texture format RGB8F specified for colortex0Format, ignoring.
[23:30:58] [Render thread/WARN]: Unrecognized internal texture format RGB8F specified for colortex4Format, ignoring.
[23:30:58] [Render thread/WARN]: Unrecognized internal texture format RGBA8F specified for colortex6Format, ignoring.
[23:30:58] [Render thread/ERROR]: #elif conditions in block.properties are not yet supported, but the current shaderpack is trying to use them!
[23:30:58] [Render thread/WARN]: Failed to parse line in block.properties: invalid render layer type: layer.translucent
[23:30:58] [Render thread/INFO]: Using shaderpack: TEST+0.16+SUPPORT+PBR.zip
[23:30:58] [Render thread/ERROR]: Couldn't load NewWorldRenderingPipeline, falling back to vanilla shaders.
java.lang.IllegalStateException: Transforming a shader that is already built against the core profile???
at net.coderbot.iris.pipeline.newshader.TriforceCompositePatcher.fixVersion(TriforceCompositePatcher.java:138) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.pipeline.newshader.TriforceCompositePatcher.patch(TriforceCompositePatcher.java:20) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.postprocess.CompositeRenderer.createProgram(CompositeRenderer.java:197) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.postprocess.CompositeRenderer.<init>(CompositeRenderer.java:81) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.<init>(NewWorldRenderingPipeline.java:191) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.Iris.createPipeline(Iris.java:423) ~[iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.coderbot.iris.pipeline.PipelineManager.preparePipeline(PipelineManager.java:39) [iris-mc1.17-1.1.2-pre+rev.dcc1352.jar:?]
at net.minecraft.class_761.handler$coa000$iris$beginWorldRender(class_761.java:10825) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.class_761.method_22710(class_761.java) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.class_757.method_3188(class_757.java:1026) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.class_757.method_3192(class_757.java:810) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1112) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:728) [intermediary-minecraft-1.17.1-client.jar:?]
at net.minecraft.client.main.Main.main(Main.java:217) [intermediary-minecraft-1.17.1-client.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234) [fabric-loader-0.11.6.jar:?]
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153) [fabric-loader-0.11.6.jar:?]
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28) [fabric-loader-0.11.6.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?]
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?]
at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
[23:30:58] [Render thread/INFO]: Stopping worker threads
[23:30:58] [Render thread/INFO]: Started 24 worker threads
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_ModelViewProjectionMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_NormalMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_ModelViewProjectionMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_NormalMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_ModelViewProjectionMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_NormalMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_ModelViewProjectionMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_NormalMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_ModelViewProjectionMatrix
[23:30:58] [Render thread/WARN]: No uniform exists with name: u_NormalMatrix
Iris and Minecraft Version
iris-1.1.2-pre+rev.dcc1352+sodium 0.3.0+IRIS2-rev.6a84168
Are you running Sodium along with Iris?
Yes
Operating System
Arch linux
What is your GPU?
MSI RX5700xt+mesa
Java Version
adoptoopenjdk java 16
Additional context
No response
Also this should go under a different issue, atlus shader is breaking for a different reason.
Same happens with "KUDA-Shaders v6.1 Legacy" which used to work before.
[00:56:00] [Render thread/ERROR]: Couldn't load NewWorldRenderingPipeline, falling back to vanilla shaders.
java.lang.RuntimeException: Shader compilation failed!
at net.coderbot.iris.postprocess.CompositeRenderer.createProgram(CompositeRenderer.java:213) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.postprocess.CompositeRenderer.<init>(CompositeRenderer.java:81) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.<init>(NewWorldRenderingPipeline.java:217) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.Iris.createPipeline(Iris.java:429) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.pipeline.PipelineManager.preparePipeline(PipelineManager.java:32) [iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.minecraft.class_761.handler$zcn000$iris$beginWorldRender(class_761.java:5821) [intermediary-1.17.1.jar:?]
at net.minecraft.class_761.method_22710(class_761.java) [intermediary-1.17.1.jar:?]
at net.minecraft.class_757.method_3188(class_757.java:1026) [intermediary-1.17.1.jar:?]
at net.minecraft.class_757.method_3192(class_757.java:810) [intermediary-1.17.1.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1112) [intermediary-1.17.1.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:728) [intermediary-1.17.1.jar:?]
at net.minecraft.client.main.Main.main(Main.java:217) [intermediary-1.17.1.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234) [fabric-loader-0.11.6.jar:?]
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153) [fabric-loader-0.11.6.jar:?]
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28) [fabric-loader-0.11.6.jar:?]
Caused by: java.lang.RuntimeException: Failed to compile FRAGMENT shader for program composite.fsh
at net.coderbot.iris.gl.program.ProgramBuilder.buildShader(ProgramBuilder.java:97) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.gl.program.ProgramBuilder.begin(ProgramBuilder.java:68) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.postprocess.CompositeRenderer.createProgram(CompositeRenderer.java:209) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
... 18 more
Caused by: java.lang.RuntimeException: Shader compilation failed, see log for details
at net.coderbot.iris.gl.shader.GlShader.createShader(GlShader.java:44) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.gl.shader.GlShader.<init>(GlShader.java:23) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.gl.program.ProgramBuilder.buildShader(ProgramBuilder.java:95) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.gl.program.ProgramBuilder.begin(ProgramBuilder.java:68) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
at net.coderbot.iris.postprocess.CompositeRenderer.createProgram(CompositeRenderer.java:209) ~[iris-and-sodium-mc1.17-1.1.2+build.9.jar:?]
... 18 more
Unfortunately, it doesn't print all exceptions and it's not including a line number.
Mods:
- fabric-api-0.40.8+1.17
- iris-and-sodium-mc1.17-1.1.2+build.9
Shaderpacks:
macOS 11.6 (20G165), MacBook Pro (16-inch, 2019), 2.4 GHz 8-Core Intel Core i9
AMD Radeon Pro 5500M 8 GB
openjdk 16.0.1 2021-04-20
@KyleUltimate After some further testing I figured out that only a hand full shaders actually compile and display properly. Use one of the Sildurs Vibrant Shaders or its Default Enhanced one and it will work.