null-mc / arc-shader Goto Github PK
View Code? Open in Web Editor NEWAn attempt at a mostly realistic shader that maintains decent performance; for Minecraft Java.
License: MIT License
An attempt at a mostly realistic shader that maintains decent performance; for Minecraft Java.
License: MIT License
When I equip this shader, my screen goes pure white.
It started with destroying pipeline because I enabled Iris and hit Apply. Btw isn't there any way to autodetect iris/optifine?
[19:25:45] [Render thread/INFO]: Destroying pipeline OVERWORLD
[19:25:45] [Render thread/WARN]: Unable to resolve shader pack option menu element "WATER_POROSITY_DARKEN" defined in shaders.properties
[19:25:45] [Render thread/INFO]: Profile: ULTRA (+1 option changed by user)
[19:25:46] [Render thread/INFO]: Using shaderpack: Arc_v0.15.2.zip
[19:25:46] [Render thread/INFO]: Creating pipeline for dimension OVERWORLD
[19:25:46] [Render thread/INFO]: Starting custom uniform resolving
[19:25:46] [Render thread/WARN]: Shader compilation log for deferred4.fsh: ERROR: 0:267: 'cascadeViewMin' : undeclared identifier
ERROR: 0:267: 'cascadeViewMin' : left of '[' is not of type array, matrix, or vector
ERROR: 0:267: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
[19:25:46] [Render thread/ERROR]: Failed to create shader rendering pipeline, disabling shaders!
net.coderbot.iris.gl.shader.ShaderCompileException: deferred4.fsh: ERROR: 0:267: 'cascadeViewMin' : undeclared identifier
ERROR: 0:267: 'cascadeViewMin' : left of '[' is not of type array, matrix, or vector
ERROR: 0:267: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
at net.coderbot.iris.gl.shader.GlShader.createShader(GlShader.java:46) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.gl.shader.GlShader.<init>(GlShader.java:25) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.gl.program.ProgramBuilder.buildShader(ProgramBuilder.java:99) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.gl.program.ProgramBuilder.begin(ProgramBuilder.java:52) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.postprocess.CompositeRenderer.createProgram(CompositeRenderer.java:337) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.postprocess.CompositeRenderer.<init>(CompositeRenderer.java:116) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.<init>(NewWorldRenderingPipeline.java:256) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.createPipeline(Iris.java:664) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.PipelineManager.preparePipeline(PipelineManager.java:34) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.reload(Iris.java:606) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.apiimpl.IrisApiV0ConfigImpl.setShadersEnabledAndApply(IrisApiV0ConfigImpl.java:28) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.gui.screen.ShaderPackScreen.applyChanges(ShaderPackScreen.java:557) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.gui.screen.ShaderPackScreen.lambda$init$3(ShaderPackScreen.java:242) ~[transformed-mod-iris.i0:0/:?]
at net.minecraft.class_4185.method_25306(class_4185.java:94) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_4264.method_25348(class_4264.java:16) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_339.method_25402(class_339.java:172) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_4069.method_25402(class_4069.java:31) ~[transformed-mod-minecraft.i0:0/:?]
at net.coderbot.iris.gui.screen.ShaderPackScreen.method_25402(ShaderPackScreen.java:196) ~[transformed-mod-iris.i0:0/:?]
at net.minecraft.class_312.method_1611(class_312.java:94) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_437.method_25412(class_437.java:492) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_312.method_1601(class_312.java:94) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_312.method_22686(class_312.java:165) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_1255.execute(class_1255.java:102) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_312.method_22684(class_312.java:165) ~[transformed-mod-minecraft.i0:0/:?]
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.1.jar:build 7]
at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.1.jar:build 7]
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474) ~[lwjgl-glfw-3.3.1.jar:build 7]
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:215) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_310.method_1523(class_310.java:1225) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_310.method_1514(class_310.java:781) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.client.main.Main.method_44604(Main.java:244) ~[minecraft-1.19.3-client.jar:?]
at net.minecraft.client.main.Main.main(Main.java:51) ~[minecraft-1.19.3-client.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:527) ~[quilt-loader-0.18.5.jar:?]
at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82) ~[quilt-loader-0.18.5.jar:?]
at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28) ~[quilt-loader-0.18.5.jar:?]
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88) ~[NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126) ~[NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.main(EntryPoint.java:71) ~[NewLaunch.jar:?]
[19:25:46] [Render thread/INFO]: Stopping worker threads
[19:25:46] [Render thread/INFO]: Started 6 worker threads
When I enable Arc shaders, it looks no different from vanilla. (Yes, I remembered to enable "Using Iris?" in settings)
Specs:
CPU: Intel i3-9100F
GPU: NVIDIA GeForce RTX 2060 SUPER
RAM: 12G/16G allocated (no bottleneck)
OS: Win 11 Insider
JAVA: OpenJDK JRE 17.0.3 64bit
MC Version: Fabric 14.9 1.19.2
Shader version: 0.6
Sodium 0.4.4 + Iris 1.3.0 or previous
Simply doesn't work (fallback)
Logs:
Failed to create shader rendering pipeline, disabling shaders!
java.lang.RuntimeException: net.minecraft.class_2973: Invalid shaders/core/clouds.json: Couldn't compile fragment program (, clouds) : 0(895) : error C1503: undefined variable "alphaTestRef"
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.lambda$new$9(NewWorldRenderingPipeline.java:352)
at net.coderbot.iris.pipeline.newshader.ShaderMap.(ShaderMap.java:21)
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.(NewWorldRenderingPipeline.java:339)
at net.coderbot.iris.Iris.createPipeline(Iris.java:659)
at net.coderbot.iris.pipeline.PipelineManager.preparePipeline(PipelineManager.java:34)
at net.coderbot.iris.Iris.reload(Iris.java:601)
at net.coderbot.iris.apiimpl.IrisApiV0ConfigImpl.setShadersEnabledAndApply(IrisApiV0ConfigImpl.java:28)
at net.coderbot.iris.gui.screen.ShaderPackScreen.applyChanges(ShaderPackScreen.java:491)
at net.coderbot.iris.gui.screen.ShaderPackScreen.lambda$init$2(ShaderPackScreen.java:218)
at net.minecraft.class_4185.method_25306(class_4185.java:43)
at net.minecraft.class_4264.method_25348(class_4264.java:16)
at net.minecraft.class_339.method_25402(class_339.java:120)
at net.minecraft.class_4069.method_25402(class_4069.java:27)
at net.coderbot.iris.gui.screen.ShaderPackScreen.method_25402(ShaderPackScreen.java:172)
at net.minecraft.class_312.method_1611(class_312.java:94)
at net.minecraft.class_437.method_25412(class_437.java:489)
at net.minecraft.class_312.method_1601(class_312.java:94)
at net.minecraft.class_312.method_22686(class_312.java:165)
at net.minecraft.class_1255.execute(class_1255.java:103)
at net.minecraft.class_312.method_22684(class_312.java:165)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:204)
at net.minecraft.class_1041.method_15998(class_1041.java:315)
at net.minecraft.class_310.method_1523(class_310.java:1205)
at net.minecraft.class_310.method_1514(class_310.java:768)
at net.minecraft.client.main.Main.method_44604(Main.java:244)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: net.minecraft.class_2973: Invalid shaders/core/clouds.json: Couldn't compile fragment program (, clouds) : 0(895) : error C1503: undefined variable "alphaTestRef"
at net.minecraft.class_2973.method_12856(class_2973.java:48)
at net.minecraft.class_5944.(class_5944.java:200)
at net.coderbot.iris.pipeline.newshader.ExtendedShader.(ExtendedShader.java:52)
at net.coderbot.iris.pipeline.newshader.NewShaderTests.create(NewShaderTests.java:130)
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.createShader(NewWorldRenderingPipeline.java:431)
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.createShader(NewWorldRenderingPipeline.java:420)
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.lambda$new$9(NewWorldRenderingPipeline.java:348)
... 31 more
Caused by: java.io.IOException: Couldn't compile fragment program (, clouds) : 0(895) : error C1503: undefined variable "alphaTestRef"
at net.minecraft.class_281.method_34416(class_281.java:69)
at net.minecraft.class_281.method_1283(class_281.java:51)
at net.minecraft.class_5944.method_34579(class_5944.java:238)
at net.minecraft.class_5944.(class_5944.java:183)
... 36 more
The shaders aren't applied and it uses vanilla instead
[18:02:14] [Render thread/WARN]: Unable to resolve shader pack option menu element "WATER_POROSITY_DARKEN" defined in shaders.properties
[18:02:14] [Render thread/INFO]: Profile: HIGH (+2 options changed by user)
[18:02:15] [Render thread/INFO]: Using shaderpack: Arc-Shader-main.zip
[18:02:15] [Render thread/INFO]: Creating pipeline for dimension OVERWORLD
[18:02:15] [Render thread/INFO]: Starting custom uniform resolving
[18:02:15] [Render thread/WARN]: The in declaration 'atlasBounds' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'tangentW' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'viewTangent' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'viewTangent' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'atlasBounds' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'tangentW' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'tangentW' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'atlasBounds' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'viewTangent' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'materialId' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'matTBN' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/WARN]: The in declaration 'tanViewPos' in the FRAGMENT shader that is never assigned to in the previous stage VERTEX has been compatibility-patched by adding an initialization for it. See debugging.md for more information.
[18:02:15] [Render thread/INFO]: OpenGL debug message: id=6, source=SHADER COMPILER, type=ERROR, severity=HIGH, message='0:1(10): error: the compatibility profile is not supported'
[18:02:15] [Render thread/ERROR]: Failed to create shader rendering pipeline, disabling shaders!
net.coderbot.iris.gl.shader.ShaderCompileException: lines.vsh: 0:1(10): error: the compatibility profile is not supported
at net.minecraft.class_281.handler$zhl000$iris$causeException(class_281.java:536) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_281.method_34416(class_281.java:68) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_281.method_1283(class_281.java:51) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_5944.method_34579(class_5944.java:242) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_5944.<init>(class_5944.java:185) ~[transformed-mod-minecraft.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.ExtendedShader.<init>(ExtendedShader.java:84) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewShaderTests.create(NewShaderTests.java:109) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.createShader(NewWorldRenderingPipeline.java:675) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.createShader(NewWorldRenderingPipeline.java:652) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.lambda$new$12(NewWorldRenderingPipeline.java:420) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.ShaderMap.<init>(ShaderMap.java:21) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline.<init>(NewWorldRenderingPipeline.java:411) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.createPipeline(Iris.java:674) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.pipeline.PipelineManager.preparePipeline(PipelineManager.java:34) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.reload(Iris.java:616) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.toggleShaders(Iris.java:274) ~[transformed-mod-iris.i0:0/:?]
at net.coderbot.iris.Iris.handleKeybinds(Iris.java:255) ~[transformed-mod-iris.i0:0/:?]
at net.minecraft.class_310.handler$zif001$iris$onTick(class_310.java:6006) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_310.method_1574(class_310.java:1958) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_310.method_1523(class_310.java:1180) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.class_310.method_1514(class_310.java:801) ~[transformed-mod-minecraft.i0:0/:?]
at net.minecraft.client.main.Main.main(Main.java:237) ~[minecraft-1.19.4-client.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:527) ~[quilt-loader-0.18.10.jar:?]
at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82) ~[quilt-loader-0.18.10.jar:?]
at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28) ~[quilt-loader-0.18.10.jar:?]
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88) ~[NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126) ~[NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.main(EntryPoint.java:71) ~[NewLaunch.jar:?]
NixOS unstable linux, Prismlauncher (https://github.com/unmojang/PrismLauncher/tree/custom-yggdrasil), Quilt 0.18.10, lwjgl 3.3.1, mods: qfapi-6.0.0-beta.6_qsl-5.0.0-beta.5_fapi-0.79.0_mc-1.19.4, sodium-fabric-mc1.19.4-0.4.10+build.24, drasl-tweaks-1.0.0, iris-mc1.19.4-1.6.3, no-telemetry-1.7.0
AMD Ryzen 5 3600 6-Core Processor
GPU: AMD Radeon RX 6600 (navi23, LLVM 15.0.7, DRM 3.49, 6.1.29) (Supports OpenGL 4.6 (Core Profile) Mesa 23.0.3)
Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c7)
amdgpu
Java is version 17.0.6, using 64 (amd64) architecture, from N/A.
I enabled use iris in the options and disabled global illumination
As you can see this shaders doesn't work properly on my computer
My specs:
graphics card: Radeon RX 5600 XT
processor: Ryzen 5 3600
ram: 16 gb
latest.log
final.fsh: final.fsh: ERROR: 0:193: 'texel offset' : argument must be compile-time constant
ERROR: 0:193: '=' : cannot convert from ' global 4-component vector of float' to ' temp float'
ERROR: 0:193: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.