zesterer / openmw-shaders

Photorealistic shaders for Morrowind
83 stars 7 forks source link

Shader initliazation issue with new build of 0.49 #51

Open FailedTalent101-1 opened 3 months ago

FailedTalent101-1 commented 3 months ago

Had to reinstall OpenMW 0.49 for a mod, so I went to the OpenMW website and downloaded the build from Development Builds for Windows. Now whenever I try using this shader pack, it says "failed initializing shader: fullscreen_tri". With my very limited coding experience (still learning), I have done my best to see what could be wrong, but I'm too dumb to figure it out.

khirasier commented 3 months ago

same issue here

nitroinferno commented 1 month ago

Looks like the issue is stemming from line #9 in shaders\lib\core\fragment.h.glsl

The regular shaders\lib\core\fragment.h.glsl has:

#if @waterRefraction
vec4 sampleRefractionMap(vec2 uv);
float sampleRefractionDepthMap(vec2 uv);
#endif

new one has:

#if @refraction_enabled
vec4 sampleRefractionMap(vec2 uv);
float sampleRefractionDepthMap(vec2 uv);
#endif

I'm a complete noob at this stuff - but I'll see if I can't get some kinda fix where it allows the shaders to work once again in 0.49

nitroinferno commented 1 month ago

Well I got the game to load after fiddling with some of the files after parsing through numerous errors on startup the result:

Screenshot 2024-09-06 211004

This is way beyond my league of ability to fix haha