Stellaris

Stellaris

Subdued Borders
EvilVictor  [developer] 6 Jun, 2016 @ 5:30pm
Adjusting the fill opacity
It's pretty easy to adjust the fill opacity to fit your taste, just create your own new mod using the mod tools and extract the borders.fxh file from my mod into yourmod/gfx/fx. Shader programing looks scary but you only need to play with one number in line 267:

vColor.a = max( vBlend, vTint * 0.45f ) ;

The 0.45f determines how opaque the fill color's alpha channel will be, higher numbers make it more visible. Setting it to something in the range of 0.35f to 0.55f will typically yield the best results.

I did the hard part already to get it to work off two values (edge and fill) instead of one (fill) so tweaking it is really easy.

Hope that helps! :)
Last edited by EvilVictor; 6 Jun, 2016 @ 5:31pm
< >
Showing 1-6 of 6 comments
Reynard-Miri 6 Jun, 2016 @ 9:26pm 
Thank you!
EvilVictor  [developer] 6 Jun, 2016 @ 9:30pm 
You bet. Let me know if you run into any trouble adjusting it.
Aegrim 1 Jul, 2016 @ 10:42am 
What's the default colour for the stock game?
EvilVictor  [developer] 1 Jul, 2016 @ 5:10pm 
I'm guessing you mean default opacity since the coloring is unchanged. The default uses this:

vColor.a *= saturate( smoothstep( 0.45f, 0.55f, vIntensity ) );

which basically means the alpha (opacity) is clamped to a minimum of 0.45 and a maximum of 0.55. Simply changing this mod to use 0.55f for the alpha will not quite make it identical to the default fill but it will be close, with the addition of the more intense border edge. Changing this mod to use that exact code for the alpha intensity will eliminate the changes from this mod entirely :)
Last edited by EvilVictor; 1 Jul, 2016 @ 5:14pm
Peterowsky 9 Apr, 2017 @ 10:59am 
Hey Victor!

So I did as you outline here, but I see no noticeable change I'm afraid. Maybe I'm not getting something.

My lines (267 and 268) look like this:

// vColor.rgb *= saturate( smoothstep( 0.3f, 0.57f, vIntensity ) ) ;
// vColor.a = max( vBlend, vTint * 0.55f ) ;

Is there anything I'm misunderstanding? Or maybe some other line I should play with?
***** Sir Guy 19 Nov, 2017 @ 5:51am 
evil, may i have permission to use your subdued borders shader in my mod, empire traits?
< >
Showing 1-6 of 6 comments
Per page: 1530 50