@Kopernicus:FOR[Vulcan]:NEEDS[Kopernicus]
{
    Body
    {
        name = Vulcan
        cacheFile = Vulcan/Cache/Vulcan.bin

        Template
        {
            name = Laythe
            removeAllPQSMods = true 
            removeAtmosphere = true
            removeOceans = true
        }
        Properties
        {
            radius = 150000
            displayName = Vulcan^N
            geeASL = 0.165
            description = Vulcan (vʌlkən) was a proposed planet that some pre-20th century astronomers thought existed in an orbit between Moho and Kerbol. Speculation about, and even purported observations of, intermercurial bodies or planets date back to the beginning of the 17th century.
            rotates = true
            rotationPeriod = 1528541
            tidallyLocked = false
            ScienceValues
            {
                landedDataValue = 25
                splashedDataValue = 3
                flyingLowDataValue = 11
                flyingHighDataValue = 10
                inSpaceLowDataValue = 7
                inSpaceHighDataValue = 5
                recoveryValue = 15
            }
            Biomes
			{
				Value
				{
					name = Lava
					displayName = Lava
					value = 0
					color = #ff7300
				}
				Value
				{
					name = Surface
					displayName = Surface
					value = 0
					color = #161729
				}
            }
        }
        Orbit
        {
            referenceBody = Sun
            semiMajorAxis = 2807000000
            inclination = 7
            eccentricity = 0
            longitudeOfAscendingNode = 0
            argumentOfPeriapsis = 0
            meanAnomalyAtEpoch = 0
            epoch = 0
        }
        Atmosphere				
        {				
            enabled =	True			
            oxygen =	False			
            altitude =	20000			
            adiabaticIndex =	1.23			
            atmosphereMolarMass =	0.042			
            temperatureSeaLevel =	599			
            staticPressureASL =	2.02650E+00			
            temperatureCurve				
            {				
                key =	0	518	0.00000E+00	1.28407E-02
                key =	3816	567	1.28407E-02	-1.31019E-03
                key =	6869	563	-1.31019E-03	-1.09103E-02
                key =	9802	531	-1.09103E-02	-1.27886E-02
                key =	12617	495	-1.27886E-02	-1.25461E-02
                key =	15327	461	-1.25461E-02	-1.07116E-02
                key =	17941	433	-1.07116E-02	-9.71345E-03
                key =	20000	413	-9.71345E-03	0.00000E+00
            }				
            temperatureSunMultCurve				
            {				
                key =	0	1.000	0.00000E+00	-2.61792E-04
                key =	3816	0.001	-2.61792E-04	-9.85915E-05
                key =	6869	-0.300	-9.85915E-05	2.31845E-05
                key =	9802	-0.232	2.31845E-05	4.79574E-05
                key =	12617	-0.097	4.79574E-05	5.35055E-05
                key =	15327	0.048	5.35055E-05	4.05509E-05
                key =	17941	0.154	4.05509E-05	1.40845E-05
                key =	20000	0.183	1.40845E-05	0.00000E+00
            }				
            temperatureLatitudeBiasCurve				
            {				
                key =	0	36.25	0	0
                key =	38	0	-1.8374	-1.8374
                key =	90	-134.75	-2.9845	0
            }				
            temperatureLatitudeSunMultCurve				
            {				
                key =	0	191	0	0
                key =	38	162.38	-1.4506	-1.4506
                key =	90	56	-2.3562	0
            }				
            temperatureAxialSunBiasCurve				
            {				
                key =	0	1.91	0	-0.046
                key =	36	0	-0.0568	-0.0568
                key =	126	-3.26	0	0
                key =	216	0	0.0568	0.0568
                key =	306	3.26	0	0
                key =	360	1.91	-0.046	0
            }				
            temperatureAxialSunMultCurve				
            {				
                key =	0	0	0	0
                key =	38	0.5	0.02	0.02
                key =	90	1	0	0
            }				
            temperatureEccentricityBiasCurve				
            {				
                key =	0	0	0	0
            Unused				
            }				
            pressureCurve				
            {				
                key =	0	2.02650E+00	0.00000E+00	-3.59304E-04
                key =	3816	1.13958E+00	-2.13526E-04	-2.13526E-04
                key =	6869	6.40836E-01	-1.26185E-04	-1.26185E-04
                key =	9802	3.60368E-01	-7.47341E-05	-7.47341E-05
                key =	12617	2.02650E-01	-4.41495E-05	-4.41495E-05
                key =	15327	1.13958E-01	-2.60059E-05	-2.60059E-05
                key =	17941	6.40836E-02	-1.52686E-05	-1.52686E-05
                key =	20000	0.00000E+00	0.00000E+00	0.00000E+00			
            }
            AtmosphereFromGround
            {
                waveLength = 0.653846383,0.753846526,0.857691467,1
            }
        }
        ScaledVersion
        {
            type = Atmospheric
            fadeStart = 20000
            fadeEnd = 30000
            Material
            {
                texture = Vulcan/PluginData/VulcanColor.dds
                normals = Vulcan/PluginData/VulcanNormals.dds
                color = 0.8,0.8,0.8,0.8
                specColor = 0,0,0,0
                shininess = 1

                VertexColorMapEmissive
                {
                    blendMove = Additive
                    map = Vulcan/PluginData/VulcanEmissive.dds
                    brightness = 3
                }
            }
        }
        PQS
        {
            fadeStart = 40000
            fadeEnd = 50000
			deactivateAltitude = 60000
            minLevel = 2
            maxLevel = 9
            materialType = AtmosphericTriplanarZoomRotation
            Material 
            {
                saturation = 1
                contrast = 1
                tintColor = 1,1,1,1
                specularColor = 0.1,0.1,0.1,1
                albedoBrightness = 1
                steepPower = 1.5
                steepTexStart = 10000
                steepTexEnd = 200000
                steepTexScale = 1,1
                steepTexOffset = 0,0
                steepTex = BUILTIN/MunCliff [Diffuse]
                steepBumpMapScale = 1,1
                steepBumpMapOffset = 0,0
                steepBumpMap = BUILTIN/MunCliff [Normal]
                steepNearTiling = 500
                steepTiling = 350
                midTexScale = 1,1
                midTexOffset = 0,0
                midTex = BUILTIN/MunFloor [Diffuse]
                midBumpMapScale = 1,1
                midBumpMapOffset = 0,0
                midBumpMap = BUILTIN/MunFloor [Normal]
                midTiling = 150000
                midBumpTiling = 150000
                lowStart = -1
                lowEnd = -1
                highStart = 1
                highEnd = 1
                globalDensity = 1
            }
            Mods 
            {
                VertexHeightMap
                {
                    map = Vulcan/PluginData/VulcanHeight.dds // height
                    offset = -800
                    deformity = 8000
                    scaleDeformityByRadius = false
                    order = 10
                    enabled = True
                }
                VertexColorMap
                {
                    map = Vulcan/PluginData/VulcanColor.dds // color
                    order = 50
                    enabled = true
                }
                VertexHeightNoiseVertHeightCurve2
                {
                    deformity = 1000
                    ridgedAddFrequency = 32
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 8
					ridgedAddSeed = 937536357
					ridgedMode = Low
					ridgedSubFrequency = 32
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 8
					ridgedSubSeed = 234352
					simplexFrequency = 24
					simplexHeightEnd = 6000
					simplexHeightStart = 0
					simplexOctaves = 8
					simplexPersistence = 0.5
					simplexSeed = 139783915
					order = 40
					enabled = True
                    simplexCurve
					{
						key = 0 0 0 0
						key = 0.6311918 0.4490898 1.432598 1.432598
						key = 1 1 0 0
					}
                }
				Parallax:NEEDS[ParallaxContinued]
                {
                    subdivisionLevel = 7
                    subdivisionRadius = 700
                    order = 999999
                }
                LandControl 
				{
					altitudeBlend = 0.01
					altitudeFrequency = 2
					altitudeOctaves = 2
					altitudePersistance = 0.5
					altitudeSeed = 53453
					createColors = True
					createScatter = True
					latitudeBlend = 0.05
					latitudeFrequency = 12
					latitudeOctaves = 6
					latitudePersistance = 0.5
					latitudeSeed = 53456345
					longitudeBlend = 0.05
					longitudeFrequency = 12
					longitudeOctaves = 4
					longitudePersistance = 0.5
					longitudeSeed = 98888
					useHeightMap = False
					vHeightMax = 6000
					order = 60
					enabled = True
					name = LCExample
					Scatters
					{
					}
					landClasses
					{
						Value
						{
							alterApparentHeight = 0
							alterRealHeight = 0
							color = 0,0,0,1
							coverageBlend = 1
							coverageFrequency = 1.5
							coverageOctaves = 4
							coveragePersistance = 0.5
							coverageSeed = 171214
							name = Main
							latDelta = 1
							latitudeDouble = False
							lonDelta = 1
							minimumRealHeight = 0
							noiseBlend = 0.5
							noiseColor = 0,0,0,1
							noiseFrequency = 8
							noiseOctaves = 4
							noisePersistance = 0.5
							noiseSeed = 453737
							delete = False
							altitudeRange
							{
								endEnd = 1
								endStart = 1
								startEnd = 0
								startStart = 0
							}
							// latitudeDoubleRange
							// {
							// 	endEnd = 0.4
							// 	endStart = 0.39
							// 	startEnd = 0.25
							// 	startStart = 0.23
							// }
							latitudeRange
							{
								endEnd = 1
								endStart = 0.75
								startEnd = 0.25
								startStart = 0
							}
							longitudeRange
							{
								endEnd = 2
								endStart = 2
								startEnd = -1
								startStart = -1
							}
							scatters
							{
							}
						}
					}
				}
            }
        }
        Ocean
		{
			ocean = True
			oceanColor = #ff5100
			oceanHeight = 0
			density = 1
			minLevel = 1
			maxLevel = 6
			minDetailDistance = 8
			maxQuadLengthsPerFrame = 0.03
			Material
			{
				color = #ff5100
				colorFromSpace = #ff5100
				specColor = 1,1,1,1
				shininess = 1
				gloss = 0.2
				tiling = 1000
				waterTex = BUILTIN/sea-water1
				waterTexScale = 1,1
				waterTexOffset = 0,0
				waterTex1 = BUILTIN/sea-water2
				waterTex1Scale = 1,1
				waterTex1Offset = 0,0
				bTiling = 800
				bumpMap = BUILTIN/quiet
				bumpMapScale = 1,1
				bumpMapOffset = 0,0
				displacement = 0.05
				texDisplacement = 0.31
				dispFreq = 0.15
				mix = 0.5566635
				oceanOpacity = 0.3
				falloffPower = 3
				falloffExp = 0.05
				fogColor = 0.321443439,0.611232221,0.947761178,1
				heightFallOff = 0.2
				globalDensity = -8E-06
				atmosphereDepth = 50000
				fogColorRamp = BUILTIN/blue_atmogradient
				fogColorRampScale = 1,1
				fogColorRampOffset = 0,0
				fadeStart = 20000
				fadeEnd = 60000
				planetOpacity = 1
				normalXYFudge = 1.4
				normalZFudge = 1.18
			}
			FallbackMaterial
			{
				color = 0.336603671,0.378080368,0.447761178,1
				colorFromSpace = 0.116878122,0.126456618,0.156862751,1
				specColor = 0.8493402,0.8493402,0.8493402,1
				shininess = 1
				gloss = 0.3336538
				tiling = 1000
				waterTex = BUILTIN/sea-water1
				waterTexScale = 1,1
				waterTexOffset = 0,0
				waterTex1 = BUILTIN/sea-water2
				waterTex1Scale = 1,1
				waterTex1Offset = 0,0
				fadeStart = 20000
				fadeEnd = 60000
				planetOpacity = 1
			}
			Fog
			{
				afgAltMult = 0.05
				afgBase = 0.6
				afgLerp = False
				afgMin = 0.05
				fogColorEnd = 0,0.0850000009,0.122500002,1
				fogColorStart = 0,0.340000004,0.49000001,1
				fogDensityAltScalar = -0.0008
				fogDensityEnd = 0.025
				fogDensityExponent = 1
				fogDensityPQSMult = 0.02
				fogDensityStart = 0.005
				skyColorMult = 1.1
				skyColorOpacityAltMult = 15
				skyColorOpacityBase = 0.25
				sunAltMult = 0.01
				sunBase = 0.5
				sunMin = 0.05
				useFog = True
			}
			Mods
			{
                VertexColorMapEmissive
                {
                    order = 2
                    enabled = True
                    blendMode = Additive
                    map = Vulcan/PluginData/VulcanEmissive.dds
                    brightness = 1
                }
				AerialPerspectiveMaterial
				{
					atmosphereDepth = 5000
					DEBUG_SetEveryFrame = False
					globalDensity = -7.5E-06
					heightFalloff = 0.2
					oceanDepth = 0
					order = 100
					enabled = True
					name = _Material_AerialPerspective
				}
				OceanFX
				{
					angle = 0
					blendA = 0
					blendB = 0
					framesPerSecond = 10
					oceanOpacity = 0
					spaceAltitude = 0
					spaceSurfaceBlend = 0
					specColor = 0,0,0,0
					texBlend = 0
					txIndex = 0
					order = 100
					enabled = True
					name = OceanFX
					Watermain
					{
						value = BUILTIN/sea-water1
						value = BUILTIN/sea-water2
						value = BUILTIN/sea-water3
						value = BUILTIN/sea-water4
						value = BUILTIN/sea-water5
						value = BUILTIN/sea-water6
						value = BUILTIN/sea-water7
						value = BUILTIN/sea-water8
						value = BUILTIN/sea-water1
					}
				}
			}
		}
        HazardousBody
        {
            Instance
            {
                ambientTemp = 270 //The temperature
                biomeName = Lava Seas //Limits it to a certain biome
                sumTemp = true //Whether the temp should be set to this or added
                HeatMap = Vulcan/PluginData/heatmap.dds //Grayscale map representing how much heat should be in an area

                AltitudeCurve //Controls how the heat is affected by altitude in meters. 1st is altitude, 2nd is a multiplier of how strong it is
                {
                    key = 0 1
                    key = 20000 0.9
                    key = 40000 0.75
                    key = 75000 0.5
                    key = 100000 0.35
                    key = 150000 0.1
                    key = 200000 0
                }
                LatitudeCurve //Controls how the heat is affected by latitude in degrees. 1st is latitude, 2nd is a multiplier of how strong it is
                {
                    key = -75 0.1
                    key = -30 0.7
                    key = 0 1
                    key = 30 0.7
                    key = 75 0.1
                }
                LongitudeCurve //Controls how the heat is affected by longitude in degrees. 1st is longitude , 2nd is a multiplier of how strong it is
                {
                    key = -160 1
                    key = -125 0.2
                    key = -75 0.8
                    key = -35 0.3
                    key = 0 1
                    key = 35 0.5
                    key = 75 0.9
                    key = 125 0.1
                    key = 165 0.6
                }
            }
        }
    }
}