The End of Dyeus

The End of Dyeus

Not enough ratings
Black ground fix (SUPER EASY. DEV PLS FIX)
By fish cat
Drastically improve the visuals by making three changes to one text file
   
Award
Favorite
Favorited
Unfavorite
the problem
ground looks like this?
the solution
Find the game's local files by right-clicking it in your library list, under the section "Manage", click "Browse local files"


In that folder, find a file named "terrain.frag" in the "data/shaders/" folder. Open the file in a text editor (e.g. Notepad)



Here are the changes that need to be made:

On line 24, it says:
if (index == 0)
Change it to:
if (index == 0.0)
(changed "0" to "0.0")




On line 26, it says:
color *= texture2D(ColorMask, gl_TexCoord[0] * 4.0);
Change it to
color *= texture2D(ColorMask, (gl_TexCoord[0] * 4.0).xy);
(changed "gl_TexCoord[0] * 4.0" to "(gl_TexCoord[0] * 4.0).xy")




On line 50, it says:
color.r = texture2D(FloraMap, gl_TexCoord[0]).r;
Change it to
color.r = texture2D(FloraMap, gl_TexCoord[0].xy).r;
(added ".xy" after the "gl_TexCoord[0]")
the result
tada!!!!! i cant believe i played the whole game with that crappy compatability mode ground. yuck!!! fix your shader please, oh mighty developer

3 Comments
Mayto  [developer] 12 Aug, 2024 @ 6:50am 
Thanks for the fix, I'll add it in the next update!
Vexeev 6 Jan, 2024 @ 3:31am 
Thanks, it works!
I sent this to developer to notice
ExtremeBanana 25 Nov, 2023 @ 7:04am 
Thanks!