Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
apologies for bad english
@Enriador,
That wouldn't increase performance as it would still render terrain and political colors. Removing that feature would increase performance.
https://imgur.com/a/Ihd0N9C
So when zoomed in/close to the ground, you have high transparency, but from far away it is as flat as possible.
#ifdef NO_SHADER_TEXTURE_LOD
float3 terrain_normal = float3( 0,1,0 );
#else
float3 terrain_normal = tex2Dlod( TerrainNormal, sample_terrain( IndexU.w, IndexV.w, vTileRepeat, vMipTexels, lod ) ).rbg - 0.5f;
#endif
Whereas in your code you seemed to have removed this process and the game will load normalmap regardless.
The issue is not the snow function, but the terrain normalmap.
Replace snow function fix the issue by stop using normalmap as a mask for snow effect.
Replace terrain shader code with political one means remove the conditional sentence listed above, so my game will load the normal texture rather than filling it with plain vector (0,1,0)
The snow looked weird because the game did not load the normal texture which is its mask.
This is how snow is rendered on my mac os: mac ck2 [i.imgur.com]
Mod uses the same snow rendering code for political mapmode that terrain mapmode uses:
"sample.rgb = ApplySnow( sample.rgb, Input.prepos, normal, vFoWColor, FoWDiffuse );"
So it's really weird that copying code from political to terrain fixes snow for you. Our games are clearly not using code the same way haha.
Also, that line is vanilla line that should work with standartfunc changes, so it's hard to comprehend whats causing that issue here for you.
Anyway, I have decided to use bootcamp and install Windows on my Macbook lol. But I suppose to other mac users, installing Windows is not the best option and they might want to have an alternative.
After some testing I have realized the root cause. There are two. First, in Mac, the game called PixelShaderTerrain for Terrain map and PixelShaderColor for other map modes whereas I assume the game would call PixelShaderColor for Terrain map and also other map modes. Since you did not altered the former function, the map looks significantly different betweenTerrain mode and any other map mode. The easiest way to fix it is by replace PixelShaderTerrain by part of the PixelShaderColor code , which i did,and I successfully solved the issue.
You replaced snow in standartfunc file? I really have no idea because I have a hackintosh with Mac OS Mojave and snow works just as well there as in windows.
I have mad a compatibility patch of this mod and one of my total conversion map mod and got reported that in Mac OS, snow textures have glitching drak edges(look like a black grid put onto the map) I tried myself with only this mod turned on, and got the same problem in winter.
It is obviously not a problem with my mod. I also ruled out PC hardware issue as using the same laptop in Windows 10,the snow looks perfect. Lastly, after I replace the function with vanilla one,the issue is solved. Still, it looks far from as good.
dor som god damn shit reason.
and it extends winter in to may? like what? but the snow makes the map look like shit.
And the most intriguing part is my map wasn't snowy during ages (explains why I didn't have the glitch for past irl days) and now it has been snowy for 3 years discontinuously (even in summer). I don't know if I'm experiencing an icing age or what but that's weird lol
Am I alone in this case ?