Europa Universalis IV

Europa Universalis IV

Not enough ratings
Yet Another Graphics Overhaul: Map Shaders (1.2)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
164.654 KB
May 29, 2022 @ 6:03am
Apr 22 @ 12:35am
3 Change Notes ( view )

Subscribe to download
Yet Another Graphics Overhaul: Map Shaders (1.2)

In 2 collections by CptWesley
Yet Another Graphics Overhaul - Shaders
4 items
Yet Another Graphics Overhaul - Complete
7 items
Description
Description
Provides a map shader that dynamically blends the terrain map with the color map depending on the zoom level and additionally adds a glowing gradient effect to country borders. Note that this mod is relatively computationally heavy. Meaning your framerate might be lower than without this mod. For some users this difference might be too much and a lite version is available here. This lite version should have better performance, but won't look as pretty as a consequence. You should only use this mod or the lite version, not both at the same time.

Ironman
All Yet Another Graphics Overhaul mods are fully ironman compatible and can be used to obtain achievements or in multiplayer with people who don't use the mods.

Usage
You can use this mod by itself or as part of the Yet Another Graphics Overhaul mod pack (see next section). This means you can also theoretically use this mod in combination with other graphics mods. However, usage with other graphics mods has not been tested and will not be officially supported.

Yet Another Graphics Overhaul
This mod is part of the open source[github.com] Yet Another Graphics Overhaul mod pack. Three Steam Workshop collections are provided for this mod pack:

You can use any combination of shader mods (don't mix lite and full versions however), but only one font mod at the same time.
49 Comments
Coac Apr 23 @ 1:11am 
It's probably something to do my computer
CptWesley  [author] Apr 23 @ 12:21am 
@NII It works for some people, but apperently not for all...
Coac Apr 22 @ 2:39pm 
@CptWesley It renders now but it shades every province instead of just the country borders and the performance is significantly worse than on Windows, especially on the normal version of the mod. The lite version seems to work fine. I'm not sure what causes the weird rendering bug on the normal version on Linux but changing the float number in int distanceToBorder from 0.1f to 0.38f alleviated it but it causes some borders between similarly colored nations to not get shaded.
NatusInIgnis | NII Apr 22 @ 8:19am 
@CptWesley. Hi there. So do you have confirmation mod indeed fixed on Linux/Mac?
CptWesley  [author] Apr 22 @ 12:37am 
@Coac Could you try again with the 1.2 version and let me know if that solved it for you?
Coac Apr 21 @ 1:14am 
It doesn't work for me on Linux and the terrain was all black. This was in the error log

[gfx_opengl.cpp:1695]: ACTUAL FAULTY LINE:
int minDist = min(d1, min(d2, min(d3, min(d4, min(d5, min(d6, min(d7, d8)))))));
[gfx_opengl.cpp:1791]:
Failed pixel shader:
0(865) : error C1101: ambiguous overloaded function reference "min(int, int)"
(0) : gp5 cp50 fp50 vp50 gp50 cpf fpf vpf gpf superp float min(superp float, superp float)
(0) : mediump float min(mediump float, int)
(0) : ps gp5 gp4 cp50 fp50 vp50 gp50 cpf fpf vpf gpf lowp float min(lowp float, lowp float)
(0) : ps gp5 gp4 cp50 fp50 vp50 gp50 cpf fpf vpf gpf mediump float min(mediump float, mediump float)
(0) : float min(float, float)
CptWesley  [author] Apr 19 @ 11:09pm 
Should be fixed on unix based systems now (linux/mac)
Fractal Nightmare Apr 16 @ 10:40pm 
Oh nvm. I am just dumb. I forgot to define "DistanceToBorder". Now all just works fine. Simply replacing "uint" with "int" shall do the trick.
Fractal Nightmare Apr 16 @ 10:32pm 
I would love to help you in testing this so your mod can run on linux and potentially on mac. If you want me to debug you results in case you want your code pristine and untouched (I more than happily will oblige), we can do that. Else, if you allow me to contribute, I can add you as friend so we can discuss this easily and bypass steam's comment's limits.

Cheers.
Fractal Nightmare Apr 16 @ 10:30pm 
Hello, it is as you've said. Replacing each instance of uint with int has solved the issue, however, the error log now spits the following:

0:921(11): error: no function with name 'DistanceToBorder'
0:922(11): error: no function with name 'DistanceToBorder'
0:923(11): error: no function with name 'DistanceToBorder'
0:924(11): error: no function with name 'DistanceToBorder'
0:925(11): error: no function with name 'DistanceToBorder'
0:926(11): error: no function with name 'DistanceToBorder'
0:927(11): error: no function with name 'DistanceToBorder'
0:928(11): error: no function with name 'DistanceToBorder'
0:929(68): warning: `d7' used uninitialized
0:929(72): warning: `d8' used uninitialized
0:929(60): warning: `d6' used uninitialized
0:929(52): warning: `d5' used uninitialized
0:929(44): warning: `d4' used uninitialized
0:929(36): warning: `d3' used uninitialized
0:929(28): warning: `d2' used uninitialized
0:929(20): warning: `d1' used uninitialized