saadam1n / MinecraftShaders

Other
3 stars 0 forks source link

Rendering bug #1

Open catfoolyou opened 9 months ago

catfoolyou commented 9 months ago

When I load up the shader, it looks like this: According to the messages in the console, all of the files are invalid.

Happens on Optifine 1.20.4 and 1.17.1 on Linux (Ubuntu 22.04)

2024-01-05_15 35 53

saadam1n commented 9 months ago

I had issues when loading up the shader as well on Linux. Check the console, most of it should be #include errors. I originally developed these shaders on Windows, which does not have case-sensitive file paths. Linux does have case-sensitive file paths, and that meant some #includes could not be resolved.

Also, just a heads up, I don't think my shaders will work anything besides Optifine. Other shader mods do some weird modification to ftransform and are unable to apply the same modification to my shaders.

catfoolyou commented 9 months ago

It says this in my logs:

[16:00:33] [Render thread/INFO]: [OptiFine] java.io.IOException: #include depth exceeded: 10, file: /shaders/lib/Shading/../VolumeRendering/../Utility/Constants.glsl
[16:00:33] [Render thread/INFO]: [OptiFine] java.io.IOException: #include depth exceeded: 10, file: /shaders/lib/Shading/../VolumeRendering/../Utility/Constants.glsl
[16:00:33] [Render thread/INFO]: [OptiFine] java.io.IOException: #include depth exceeded: 10, file: /shaders/lib/Shading/../VolumeRendering/../Utility/Constants.glsl
[16:00:33] [Render thread/INFO]: [OptiFine] [Shaders] Parsing block mappings: /shaders/block.properties
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:10
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:11
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:50
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:51
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:89
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:124
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:169
[16:00:33] [Render thread/WARN]: [OptiFine] [Shaders] Invalid block ID mapping: block.50=10 11 50 51 89 124 169
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:6
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:31
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:37
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:38
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:59
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:104
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:105
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:141
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:142
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:161
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:207
[16:00:33] [Render thread/WARN]: [OptiFine] [Shaders] Invalid block ID mapping: block.31=6 31 37 38 59 104 105 141 142 161 207
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.gbuffers.gaux4 = lib/Resources/OpticalDepth.dat TEXTURE_2D RGB32F 2048 2048 RGB FLOAT
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.composite.colortex5 = lib/Resources/lens_dirt.png
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.composite.colortex6 = lib/Resources/starburst.png
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.deferred.depthtex1 = lib/Resources/OpticalDepth.dat TEXTURE_2D RGB32F 2048 2048 RGB FLOAT
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: ScreenSize
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: TexelSize
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: CenterDistance
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionX
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionY
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionZ
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionNormalizer
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: LightDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionX
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionY
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionZ
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionNormalizer
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: SunDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: MoonDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: biomeNether
[16:00:33] [Render thread/WARN]: [Shaders] net.optifine.expr.ParseException: Model variable not found: BIOME_HELL
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: isInNether
[16:00:33] [Render thread/WARN]: [Shaders] net.optifine.expr.ParseException: Model variable not found: biomeNether
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: isInRain
[16:00:33] [Render thread/INFO]: [OptiFine] [Shaders] Parsing block mappings: /shaders/block.properties
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:10
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:11
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:50
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:51
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:89
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:124
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:169
[16:00:33] [Render thread/WARN]: [OptiFine] [Shaders] Invalid block ID mapping: block.50=10 11 50 51 89 124 169
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:6
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:31
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:37
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:38
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:59
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:104
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:105
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:141
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:142
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:161
[16:00:33] [Render thread/WARN]: [OptiFine] Shaders: Block not found for name: minecraft:207
[16:00:33] [Render thread/WARN]: [OptiFine] [Shaders] Invalid block ID mapping: block.31=6 31 37 38 59 104 105 141 142 161 207
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.gbuffers.gaux4 = lib/Resources/OpticalDepth.dat TEXTURE_2D RGB32F 2048 2048 RGB FLOAT
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.composite.colortex5 = lib/Resources/lens_dirt.png
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.composite.colortex6 = lib/Resources/starburst.png
[16:00:33] [Render thread/INFO]: [Shaders] Custom texture: texture.deferred.depthtex1 = lib/Resources/OpticalDepth.dat TEXTURE_2D RGB32F 2048 2048 RGB FLOAT
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: ScreenSize
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: TexelSize
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: CenterDistance
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionX
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionY
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionZ
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: LightDirectionNormalizer
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: LightDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionX
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionY
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionZ
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: SunDirectionNormalizer
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: SunDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: MoonDirection
[16:00:33] [Render thread/INFO]: [Shaders] Custom variable: biomeNether
[16:00:33] [Render thread/WARN]: [Shaders] net.optifine.expr.ParseException: Model variable not found: BIOME_HELL
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: isInNether
[16:00:33] [Render thread/WARN]: [Shaders] net.optifine.expr.ParseException: Model variable not found: biomeNether
[16:00:33] [Render thread/INFO]: [Shaders] Custom uniform: isInRain
[16:00:33] [Render thread/ERROR]: [Shaders] Error compiling vertex shader: /shaders/shadow.vsh
[16:00:33] [Render thread/INFO]: [Shaders] File: 1 = /shaders/lib/Utility/Attributes.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 2 = /shaders/lib/Utility/Uniforms.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 3 = /shaders/lib/Transform/Transform.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 4 = /shaders/lib/Transform/../Misc/BlockID.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 5 = /shaders/lib/Transform/Plant.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 6 = /shaders/lib/Transform/../Utility/Uniforms.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 7 = /shaders/lib/Transform/Distort.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 8 = /shaders/lib/Transform/../Utility/Constants.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 9 = /shaders/lib/Transform/Weather.glsl
[16:00:33] [Render thread/INFO]: [Shaders] Shader info log: /shaders/shadow.vsh
0(15) : error C7616: global variable gl_TexCoord is removed after version 140
[16:00:33] [Render thread/INFO]: [Shaders] Shadow map resolution: 2048
[16:00:33] [Render thread/INFO]: [Shaders] Shadow map distance: 128.0
[16:00:33] [Render thread/INFO]: [Shaders] Noise texture enabled
[16:00:33] [Render thread/INFO]: [Shaders] Noise texture resolution: 512
[16:00:33] [Render thread/ERROR]: [Shaders] Error compiling fragment shader: /shaders/shadow.fsh
[16:00:33] [Render thread/INFO]: [Shaders] File: 1 = /shaders/lib/Utility/TextureSampling.glsl
[16:00:33] [Render thread/INFO]: [Shaders] File: 2 = /shaders/lib/Utility/Uniforms.glsl
[16:00:33] [Render thread/INFO]: [Shaders] Shader info log: /shaders/shadow.fsh
1(81) : error C1115: unable to find compatible overloaded function "texture(<overloaded function>, vec2)"
1(89) : error C1115: unable to find compatible overloaded function "texture(<overloaded function>, vec2, float)"
1(97) : error C1115: unable to find compatible overloaded function "textureLod(<overloaded function>, vec2, float)"
0(10) : error C7616: global variable gl_TexCoord is removed after version 140
0(10) : error C7616: global variable gl_Color is removed after version 140
[16:00:33] [Render thread/ERROR]: [Shaders] Error linking program: 15 (shadow)
[16:00:33] [Render thread/INFO]: [Shaders] Program info log: shadow
Vertex info