atmosphere

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Nebiyu28
Posts: 15
Joined: Fri, 5. Sep 14, 05:48
x4

atmosphere

Post by Nebiyu28 »

how to you change the color of the planets atmosphere? I tried messing with the color_Atmo line in material libraries buy have had no luck. Please help explain.
JonMicheelsen
Posts: 33
Joined: Tue, 15. Aug 17, 22:08
xr

Re: atmosphere

Post by JonMicheelsen »

Reading through the shader code for the planet atmospheres, it does take two input colors - but ONLY the first is used! I'm not familiar with how an asset talks to the rendering though, so I can't help you on that front. Be aware it's a Rayleigh (without the Mie part) scattering approximation, so if you feed it an orange Mars like color you will get blue sunsets, a green Titan like color will give you pink violet sunsets and a blue Earth like atmosphere will give you golden reddish sunsets. This is physically correct, and awesome I think, but it removes a lot of artistic freedom.
Nebiyu28
Posts: 15
Joined: Fri, 5. Sep 14, 05:48
x4

Re: atmosphere

Post by Nebiyu28 »

please help explain

Return to “X4: Foundations - Scripts and Modding”