Stellaris

Stellaris

Not enough ratings
Fix No Borders Bug
 
Rate  
Favorite
Favorited
Unfavorite
File Size
Posted
0.002 MB
Apr 17, 2017 @ 5:33am
1 Change Note ( view )

Subscribe to download
Fix No Borders Bug

Subscribed
Unsubscribe
Description
On Linux with certain older AMD GPUs the empire borders are not visible. This mod contains a fix for the pixel shader that draws the borders.

I have only tested this mod on Arch Linux system with a Radeon HD 6870. I cannot guarantee it will work for any other GPU. Please post your results in the comments below.

I cannot pretend to understand why it works. I got to it by hours of trial and error. If someone has an insight into why it works, please comment below. For some reason the original shader gets rejected by the GPU. I simply rewrote the function AddAreaToID() with a macro to force the compiler to inline it.

#define AddAreaToID(vID, vArea, vTotals, vIDs) \
vTotals[0] += vArea * ( 1 - saturate( abs( vIDs[0] - vID ) * 1000 ) ); \
vTotals[1] += vArea * ( 1 - saturate( abs( vIDs[1] - vID ) * 1000 ) ); \
vTotals[2] += vArea * ( 1 - saturate( abs( vIDs[2] - vID ) * 1000 ) ); \
vTotals[3] += vArea * ( 1 - saturate( abs( vIDs[3] - vID ) * 1000 ) ); \
vTotals[4] += vArea * ( 1 - saturate( abs( vIDs[4] - vID ) * 1000 ) ); \
vTotals[5] += vArea * ( 1 - saturate( abs( vIDs[5] - vID ) * 1000 ) ); \
vTotals[6] += vArea * ( 1 - saturate( abs( vIDs[6] - vID ) * 1000 ) ); \
vTotals[7] += vArea * ( 1 - saturate( abs( vIDs[7] - vID ) * 1000 ) ); \
vTotals[8] += vArea * ( 1 - saturate( abs( vIDs[8] - vID ) * 1000 ) );
< >
19 Comments
Petete Mar 6 @ 10:16am 
Yes, it's working for me too on AMD 6850
apolyton Feb 23 @ 7:47am 
w/o this mod
apolyton Feb 23 @ 7:47am 
also works on linux with intel now
mk-fg Feb 23 @ 3:14am 
In 2.0 they've changed border system and new borders get drawn perfectly fine without this mod for me (on AMD 6670), while it was required in the past (up to 1.9.x).
Petete Feb 14 @ 10:46am 
Thank you! I used to use some console commands but this is so much better.
mk-fg Jan 5 @ 7:09pm 
You should be able to ignore that warning.
It's just a number in .mod file that wasn't updated.
Hans Big Bird Lammers Jan 3 @ 7:29am 
I tried this, and it's saying "This mod does not support the current version of the game". I'm on Mac BTW
Hoso001 Dec 27, 2017 @ 1:30am 
Works Great, fixed my bug in 1.9.1.
Cobaltblood Princess Oct 6, 2017 @ 7:04am 
still works on 1.8
TazKhaelyor Jun 29, 2017 @ 1:53pm 
Thank you very much for this mod

Works for me in 1.6.2 with Ubuntu and a HD 6850

You sir deserve a fresh-baked cookie !