@Kopernicus:FOR[OPX-SarnusPlus]
{
	!Body[Sarnus]{}
    Body
    {
        name = Sarnus

		Debug
		{
			exportMesh = false
			update = false
		}
		Template
        {
            name = Jool
        }		
        Properties
        {
			displayName = #LOC_OPX-SP_Sarnus_Name
            description = #LOC_OPX-SP_Sarnus_Desc
			radius = 6991100
            geeASL = 2.384
			rotates = true			
			rotationPeriod = 28500
            tidallyLocked = false
            initialRotation = 0
            isHomeWorld = false
            timewarpAltitudeLimits = 0 49688 99375 198750 397500 795000 1590000 3180000
			ScienceValues
			{
				landedDataValue = 30
				splashedDataValue = 1
				flyingLowDataValue = 13
				flyingHighDataValue = 10
				inSpaceLowDataValue = 8
				inSpaceHighDataValue = 7
				recoveryValue = 7
				flyingAltitudeThreshold = 275000
				spaceAltitudeThreshold =  3500000
			}
			biomeMap = OPX-SarnusPlus/Textures/PluginData/Sarnus_Biome.png
			Biomes
            {
                Biome
                {
				    name = Polar Zones
                    displayName = #LOC_OPX-SP_Sarnus_Biome_PZ
                    value = 1.0
                    color = #daaea2
                }
                Biome
                {
				    name = Temperate Belts
                    displayName = #LOC_OPX-SP_Sarnus_Biome_TB
                    value = 1.0
                    color = #c47366
                }
                Biome
                {
				    name = Temperate Zones
                    displayName = #LOC_OPX-SP_Sarnus_Biome_TZ
                    value = 1.0
                    color = #c28d7d
                }
                Biome
                {
				    name = Equatorial Zone
                    displayName = #LOC_OPX-SP_Sarnus_Biome_EZ
                    value = 1.0
                    color = #ead0c7 
                }
                Biome
                {
				    name = Tropical Bands
                    displayName = #LOC_OPX-SP_Sarnus_Biome_TrB
                    value = 1.0
                    color = #d49e7a
                }
                Biome
                {
				    name = Tropical Zones
                    displayName = #LOC_OPX-SP_Sarnus_Biome_TrZ
                    value = 1.0
                    color = #efe3db
                }
                Biome
                {
				    name = Spots
                    displayName = #LOC_OPX-SP_Sarnus_Biome_S
                    value = 1.0
                    color = #f5d0bf
                }
			}
        }
        Orbit
        {
            referenceBody = Sun
            color = 0.870588,0.721569,0.529412,1
            inclination = 2.02
            eccentricity = 0.0534
            semiMajorAxis = 125798522368
            longitudeOfAscendingNode = 184
            argumentOfPeriapsis = 0
            meanAnomalyAtEpoch = 2.88114666938782
            epoch = 359.279999999964
        }
		Rings
		{
			Ring
			{
				angle = 0
				innerRadius = 1250
				outerRadius = 2800
				texture = OPX-SarnusPlus/Textures/PluginData/Sarnus_Rings.png
				backlitTexture = OPX-SarnusPlus/Textures/PluginData/Sarnus_Rings_Backlit.png
				color = 1,1,1,1 //#bbada3
				lockRotation = true
				unlit = False
				useNewShader = True
				penumbraMultipler = 10.0
                name = mainSystem 
			}
			Ring
			{
				angle = 0
				innerRadius = 2820
				outerRadius = 2840
				texture = OPX-SarnusPlus/Textures/PluginData/Sarnus_FRing.png
				color = 1,1,1,1
				lockRotation = true
				rotationPeriod = 16368
				tiles = 10
				steps = 16384
				unlit = false
				useNewShader = true
				name = fRing
			}
            Ring
			{
				texture = OPX-SarnusPlus/Textures/PluginData/Transparent.png
				backlitTexture = OPX-SarnusPlus/Textures/PluginData/EncethysRing.png
				innerRadius = 2850
				outerRadius = 5200
				color = 1,1,1,1
				unlit = False
				useNewShader = True
				penumbraMultipler = 1000.0
				lockRotation = True
				steps = 16384
				albedoStrength = 1
				scatteringStrength = 40
				anisotropy = 0.9
                name = encethysRing
			}
		}
		Atmosphere
	    {
			ambientColor = 0.725,0.826,0.904,1
			lightColor = 0.725,0.826,0.904,1            
            enabled = true
			oxygen = false            
            albedo = 0.39
			altitude = 580000.0
			staticPressureASL = 1418.55
			pressureCurve
			{
				key = 0 1418.55 0 -0.0208439
				key = 25000 967.466 -0.0154391 -0.0154391
				key = 50000 637.444 -0.0111328 -0.0111328
				key = 75000 403.060 -0.00774693 -0.00774693
				key = 100000 244.150 -0.00508921 -0.00508921
				key = 125000 142.470 -0.00316247 -0.00316247
				key = 150000 80.6814 -0.00187510 -0.00187510
				key = 175000 44.6798 -0.00107207 -0.00107207
				key = 200000 24.3516 -0.000597380 -0.000597380
				key = 250000 7.01858 -0.000176127 -0.000176127
				key = 300000 2.00937 -4.98029E-05 -4.98029E-05
				key = 350000 0.602960 -1.38321E-05 -1.38321E-05
				key = 400000 0.205358 -4.16916E-06 -4.16916E-06
				key = 450000 0.0766917 -1.48802E-06 -1.48802E-06
				key = 500000 0.0293127 -5.59307E-07 -5.59307E-07
				key = 540000 0.0137190 -2.59214E-07 -2.59214E-07
				key = 580000 0 0 0
			}

			pressureCurveIsNormalized = false            
            temperatureSeaLevel = 167

			temperatureCurve
			{
				key = 0 167.5 0 -0.000538153
				key = 62250 134 -0.000538153 -0.000538153
				key = 205000 99 -7.611E-05 -7.611E-05
				key = 312250 99 7.611E-05 7.611E-05
				key = 431250 124 4.16E-05 4.16E-05
				key = 580000 128 0 0
			}

			temperatureCurveIsNormalized = false
			temperatureLapseRate = 0.0024
			temperatureSunMultCurve = true

			temperatureSunMultCurve
			{
				key = 0 0 0 0
				key = 205000 0 0 0
				key = 312250 0.5 5.328E-06 5.328E-06
				key = 580000 1 0 0
			}

			temperatureLatitudeSunBiasCurve
			{
				key = 0 0 0 0
				key = 90 -8 0 0
			}

			temperatureLatitudeSunMultCurve
			{
				key = 0 8 0 0
				key = 90 0 0 0
			}

			temperatureEccentricityBiasCurve
			{
				key = 0 1.5 0 -3
				key = 1 -1.5 -3 0
			}

			adiabaticIndex = 1.426
			gasMassLapseRate = 2.06477390407027
			atmosphereMolarMass = 0.0028
		}
        ScaledVersion
        {
            Material
            {
		        Gradient
                {
                    0.0 = 0.87843,0.52157,0.43922,1
                    0.6 = 0.0549,0.0784,0.141,1
                    1.0 = 0.0196,0.0196,0.0196,1
                }
                rimPower = 1.3
                rimBlend = 0.7
                rimColorRamp = OPX-SarnusPlus/Textures/PluginData/SarnusRamp.png
                rimColorRampScale = 1,1
                rimColorRampOffset = 0,0
            }
			OnDemand
			{
				normals = OPX-SarnusPlus/Textures/PluginData/Sarnus_Normal.dds
                texture = OPX-SarnusPlus/Textures/PluginData/Sarnus_Color.dds
			}	
        }
    }
}
@Kopernicus:FOR[OPX-SarnusPlus]:HAS[@OPX_SarnusPlus_Settings:HAS[#SarnusTextureChange[False]]]
{
	@Body[Sarnus]
	{
		@ScaledVersion
		{
			@OnDemand
			{
				%texture = OPM/OPM_Textures/PluginData/Sarnus_color.dds
				%normals = OPX-SarnusPlus/Textures/PluginData/Flat_NRM.dds
			}
		}
	}
}
