R-T-B / Kopernicus

Kopernicus is a mod for Kerbal Space Program which allows users to replace the planetary system used by the game.
GNU Lesser General Public License v3.0
32 stars 11 forks source link

AtmosphericStandard scaledversion material type has no support for atmosphere gradients #19

Closed WhirligigGirl closed 4 years ago

WhirligigGirl commented 4 years ago

Bodies with atmosphere gradients defined by a curve:

                ScaledVersion
        {
            Material
            {
                color = 1,1,1,1
                rimPower = 0.7
                rimBlend = 1.5
                Gradient
                {
                    //0.0 = 0.45, 0.55, 0.7, 1.0
                    0.0 = 0.55,0.55,0.60,1
                    0.1 = 0,0,0,1
                    0.6 = 0.0,0.0,0.0,1.0
                    1.0 = 0.0,0.0,0.0,1.0
                }
            }

which now use planet templates with the AtmosphericStandard material do not show their atmospheric rims. Workaround is to change all planets using those templates to have atmospheric template, but this might require more work on the part of the planet modder than changing a single line (iirc, changing the scaledspace material requires redefining a few other default features to make things work, but as of typing i haven't tried it yet.)

image Imterril, which should have bright blue atmosphere rims, is naked

democat3457 commented 4 years ago

The ``` has to be on a new line iirc

R-T-B commented 4 years ago

Is this still a problem in release 16+? I ask because a lot of shader things were bugged in release 15, due to a simple forgotten line of code.

R-T-B commented 4 years ago

I need to know if this is still a relevant bug when you get the chance.

R-T-B commented 4 years ago

I think this had been fixed for a bit, comment if not. Release 22+ should have all the fixes to issues like this.