cgytrus / MenuShaders

A Geometry Dash mod that replaces the background of the main menu with a custom customizable shader.
MIT License
4 stars 5 forks source link

Custom shaders not working at all #5

Closed vp999S closed 6 months ago

vp999S commented 6 months ago

Custom shaders loaded using geode's texture loader do not work at all and defaults to the original scrolling main menu. I tried using a bunch of shaders that worked previously on the 2.1 version of the mod and all lead to the same result.

Maintainer's edit 2: as of menu shaders 1.3.0, you can now just use shadertoy shaders directly in menu shaders without using the shadertoy porter website.

Maintainer's edit: see this response, this will likely fix your issue.

cgytrus commented 6 months ago

please, attach log files as well as the shader files.

cute-funny-cats-meow commented 6 months ago

please, attach log files as well as the shader files.

same is happening to me, i even used the ones from the x thread, they dont work, also how do i check the logs?

cgytrus commented 6 months ago

right click the game in steam > properties > browse local files > go to geode/logs and send the log from the session with menu shaders (if you dont know which ones those are, open the game, select the texture pack with one of the broken shaders, go to the main menu, close the game and send latest.log)

cute-funny-cats-meow commented 6 months ago

right click the game in steam > properties > browse local files > go to geode/logs and send the log from the session with menu shaders (if you dont know which ones those are, open the game, select the texture pack with one of the broken shaders, go to the main menu, close the game and send latest.log)

ok i will

cute-funny-cats-meow commented 6 months ago

right click the game in steam > properties > browse local files > go to geode/logs and send the log from the session with menu shaders (if you dont know which ones those are, open the game, select the texture pack with one of the broken shaders, go to the main menu, close the game and send latest.log) Geode 2024-05-17 14.55.58.log hope that helps if you need another: Geode 2024-05-17 15.00.57.log im using: myshader.zip

vp999S commented 6 months ago

please, attach log files as well as the shader files.

Geode 2024-05-17 20.58.27.log menu-shader.zip

cgytrus commented 6 months ago

@cute-funny-cats-meow looks like your shader uses textures, those are unsupported by menu shaders, as stated in the FAQ of the porter website.

cgytrus commented 6 months ago

please, attach log files as well as the shader files.

Geode 2024-05-17 20.58.27.log menu-shader.zip

looks like this shader has an error in its code, are you sure it works in 2.1? image

works fine after fixing the shader code: menu-shader.zip image

cute-funny-cats-meow commented 6 months ago

@cute-funny-cats-meow looks like your shader uses textures, those are unsupported by menu shaders, as stated in the FAQ of the porter website.

how do i check if they have textures?

copycold commented 6 months ago

doesn't work with anything that i try either, this one shouldn't use textures as it's just triangles. maybe it's something about the porter? keeps coming up with the "failed to create shader node" error

also the success log is when i removed the shader from the resources folder

Geode 2024-05-19 07.01.37.log

menu-shader.zip

cgytrus commented 6 months ago

doesn't work with anything that i try either, this one shouldn't use textures as it's just triangles. maybe it's something about the porter? keeps coming up with the "failed to create shader node" error

also the success log is when i removed the shader from the resources folder

Geode 2024-05-19 07.01.37.log

menu-shader.zip

as the error directly above the one you mentioned says, there are 2 errors in the shader itself.

RueOfficial commented 6 months ago

My shader's dont work as well, i dont think they have textures from what ive seen but they just default to the default gd screen instead of displaying the shader

Logs: Geode 2024-05-19 22.38.02.log

Shader File: menu-shader.zip

copycold commented 6 months ago

it managed to work for me when i used a plasma shader so probably if you use a simple shader it will work

cgytrus commented 6 months ago

it managed to work for me when i used a plasma shader so probably if you use a simple shader it will work

this has nothing to do with the shaders' complexity. you just got lucky the shader developer wrote their code in a way that made your specific gpu driver happy.

cgytrus commented 6 months ago

closing as the issue of the OP has been resolved and i will not continue fixing others' shaders for everyone.

Fryy55 commented 6 months ago

If anyone sees this with their shaders not working, see if this helps. You'll very likely have "vec2 uv = gl_FragCoord/resolution.xy;" right in the beginning of your main function in a menu-shader.fsh file. Change that to "vec2 uv = gl_FragCoord.xy/resolution.xy;" as it might fix your issue. image

cgytrus commented 6 months ago

i looked into it further, the shadertoy porter everyone's using has always been broken, and it only started manifesting now, either after driver updates or changing the glsl version, even tho implicit casts have always been forbidden by the glsl spec (see: page 16, or 22 in the pdf itself). to fix this, replace all instances of gl_FragCoord that dont have .xy after them with gl_FragCoord.xy, as Fryy55 mentioned

Tamarindo-XD commented 5 months ago

menu-shader.zip Shader problem

Tamarindo-XD commented 5 months ago

I already put the new code for the shader but now I get the light blue background and it goes down slightly to blue.