@Kopernicus:AFTER[KOPERNICUS]
{
	Body
	{
	   Template
       {
           name = Laythe
		   removePQSMods = VertexHeightMap, VertexColorMap, VertexSimplexHeightMap, VertexHeightNoiseVertHeight
       }
		name = Ovin
		cacheFile = TripleTriple/Cache/Aeualik.bin
		finalizeOrbit = False
		randomMainMenuBody = False
		contractWeight = 100
		Properties
		{
			description = A scorched world. It contains a gravity of 4 G's due to its high concentration of heavy metals such as osmium and iridium.
			radius = 530000
			geeASL = 0.800273295870079
			tidallyLocked = True
			albedo = 0.7
			emissivity = 0.7
			sphereOfInfluence = 4023645.81113302
			displayName = Aeualik^N
			ScienceValues
			{
				landedDataValue = 18 
				splashedDataValue = 16 
				flyingLowDataValue = 15 
				flyingHighDataValue = 14 
				inSpaceLowDataValue = 11
				inSpaceHighDataValue = 10 
				recoveryValue = 12
				flyingAltitudeThreshold = 20000 
				spaceAltitudeThreshold = 200000 
			}
			biomeMap = TripleTriple/Textures/PluginData/AeualikBio.png
			Biomes
			{
				Value
				{
					name = North Pole
					displayName = #LOC_DB_Biome_NorthPole
					value = 0
					color = RGBA(0,40,215,255)
				}
				Value
				{
					name = South Pole
					displayName = #LOC_DB_Biome_SouthPole
					value = 0
					color = RGBA(0,204,204,255)
				}
				Value
				{
					name = Ejecta
					displayName = #LOC_DB_Biome_Ejecta
					value = 0
					color = RGBA(255,111,143,255)
				}
				Value
				{
					name = Fissures
					displayName = #LOC_DB_Biome_Fissures
					value = 0
					color = RGBA(255,255,255,255)
				}
				Value
				{
					name = Craters
					displayName = #LOC_DB_Biome_Craters
					value = 0
					color = RGBA(0,0,255,255)
				}
			}
		}
		Orbit
		{
			referenceBody = Ogon // The body that this body is orbiting around.
			inclination = 0.44 // The angle between the orbital plane and the ecliptic
			eccentricity = 0.04 // The deviation of the orbit from circularity
			semiMajorAxis = 271840000 // One-half the length of a line segment drawn from periapsis to apoapsis
			longitudeOfAscendingNode = 0 // Where the orbit crosses the ecliptic moving south to north
			argumentOfPeriapsis = 0 // The angular distance between longitudeOfAscendingNode and periapsis
			epoch = 0 // The number of elapsed seconds from UT = 00:00:00
			color = RGBA(255,250,200,255) // The color of the orbit line in the Tracking Station
			nodeColor = RGBA(255,250,200,255) // The color of the circle that marks the planets current position on the orbit
			period = 0 // Orbital period in seconds
		}
		ScaledVersion
		{
			type = Atmospheric
			fadeStart = 10000
			fadeEnd = 40000
			sphericalModel = False
			deferMesh = False
			invisible = False
			VertexColorMapEmissive
			{
				order = 2
				enabled = True
				map = TripleTriple/Textures/PluginData/AeualikGlow.dds
				brightness = 2
				transparency = 0.1
			}
			Material
			{
				color = .2,.2,.2,1
				specColor = 0.305970132,0.305970132,0.305970132,1
				shininess = 0.1661175
				texture = TripleTriple/Textures/PluginData/AeualikClr.dds
				mainTexScale = 1,1
				mainTexOffset = 0,0
				normals = TripleTriple/Textures/PluginData/AeualikNrm.dds
				bumpMapScale = 1,1
				bumpMapOffset = 0,0
				opacity = 1
				rimPower = 5
				rimBlend = 1
				localLightDirection = -0.617191017,0.0226955116,-0.78648591,0
				resourceMapScale = 1,1
				resourceMapOffset = 0,0
				Gradient
				{
					0.0 = 0.9,0.9,0.6,1.0
					0.4 = 0.9,0.9,0.6,1.0
					0.5 = 0.05,0.02,0.002,1.0
					1.0 = 0.0,0.0,0.0,1.0
				}
			}
		}
		Atmosphere
		{
			enabled = True // Whether the body has an atmosphere
			oxygen = False // Whether the atmosphere contains oxygen
			adiabaticIndex = 1.2 // A thermodynamic property of the gas, also known as heat capacity ratio
			atmosphereDepth = 105000 // The height of the atmosphere
			atmosphereMolarMass = 0.05200825 // The mass in kilograms of one mole of gas
			ambientColor = 0.187128037,0.239393175,0.305882365,1 // All objects inside of the atmosphere will slightly shine in this color
			addAFG = True
			pressureCurve // Assigns a pressure value to a height value inside of the atmosphere
			{
				key = 0 150.795 0 -0.005216384
				key = 5250 120.40898 -0.004252711 -0.004252711
				key = 10000 80.78605 -0.002407767 -0.002407767
				key = 17000 50.100577 -0.001092064 -0.001092064
				key = 22000 30.812421 -0.0004677011 -0.0004677011
				key = 31000 10.312482 -0.0001961767 -0.0001961767
				key = 38000 5.104055 -7.855808E-05 -7.855808E-05
				key = 50000 1.104055 -7.855808E-05 -7.855808E-05
				key = 105000 0 0 0
			}
			temperatureCurve // Assigns a base temperature value to a height value inside of the atmosphere
			{
				key = 0 900 0 -0.009285714
				key = 5250 860 -0.009253677 0
				key = 10000 850 0 0.001419616
				key = 17000 835 0.001414257 0.003959919
				key = 22000 830 0.0039412 -0.0002581542
				key = 31000 825 -0.003911343 -0.0007623209
				key = 38000 820 0 0.001478429
				key = 50000 815 0 0.001478429
				key = 105000 1000 0 0
			}
			temperatureSunMultCurve // How the temperature modifiers vary by altitude, in the form of a multiplier
			{
				key = 0 1 0 0
				key = 5250 0.1 -6.848309E-05 -6.848309E-05
				key = 10000 0 0 0
				key = 17000 0 0 0
				key = 27000 0.1763835 4.519309E-05 4.519309E-05
				key = 38000 1 4.497274E-05 4.497274E-05
				key = 50000 1.2 0 0
				key = 105000 1.2 0 0
			}
			temperatureLatitudeBiasCurve // Latitudinal temperature modifier
			{
				key = 0 5 0 -0.04354425
				key = 50 1 -0.2132 -0.2132
				key = 70 -10 -1.128971 -1.128971
				key = 90 -30 -0.02418368 0
			}
			temperatureLatitudeSunMultCurve // Day - night temperature modifier by latitude
			{
				key = 0 6 0 0.02746098
				key = 40 9 0.2094055 0.2094055
				key = 65 11 0 0
				key = 90 2 0 0
			}
			AtmosphereFromGround // The atmosphere effect that is seen on the horizon
			{
				DEBUG_alwaysUpdateAll = False // Whether all parameters should get recalculated and reapplied every frame.
				doScale = True // Whether the atmosphere mesh should be scaled automatically.
				innerRadius = 529500 // The lower bound of the atmosphere effect.
				invWaveLength = 16.2189484,5.01561308,1.97744954,0.75
				outerRadius = 550000 // The upper bound of the atmosphere effect.
				samples = 4
				transformScale = 1.02499998,1.02499998,1.02499998 // The scale of the atmosphere mesh in all three directions. Automatically set if doScale is enabled.
				waveLength = 0.843283594,0.843283594,0.49830395,0
				outerRadiusMult = 1.025 // A multiplier that automatically sets outerRadius based on the planets radius.
				innerRadiusMult = 0.975 // A multiplier that automatically sets innerRadius based on the planets radius.
			}
		}	
		PQS
		{
			minLevel = 2
			maxLevel = 11
			minDetailDistance = 8
			maxQuadLengthsPerFrame = 0.03
			fadeStart = 40000
			fadeEnd = 110000
			deactivateAltitude = 150000
			mapMaxHeight = 4096
			materialType = AtmosphericTriplanarZoomRotation
			Material
			{
				factor = 9
				factorBlendWidth = 0.05
				factorRotation = 0
				saturation = 0
				contrast = 0
				tintColor = 0,0,0,0
				specularColor = 0,0,0,0
				albedoBrightness = 1
				steepPower = 3
				steepTexStart = 0
				steepTexEnd = 0
				steepTex = CTTP/Textures/PluginData/cliff.dds
				steepTexScale = 1,1
				steepTexOffset = 0,0
				steepBumpMap = CTTP/Textures/PluginData/cliff_normal.dds
				steepBumpMapScale = 1,1
				steepBumpMapOffset = 0,0
				steepNearTiling = 100
				steepTiling = 50
				lowTex = BUILTIN/laytheLow_diff
				lowTexScale = 1,1
				lowTexOffset = 0,0
				lowTiling = 20000
				midTex = CTTP/Textures/PluginData/cracked.dds
				midTexScale = 1,1
				midTexOffset = 0,0
				midTiling = 40000
				midBumpMap = CTTP/Textures/PluginData/cracked_normal.dds
				midBumpMapScale = 1,1
				midBumpMapOffset = 0,0
				midBumpTiling = 40000
				highTex = CTTP/Textures/PluginData/rock.dds
				highTexScale = 1,1
				highTexOffset = 0,0
				highTiling = 1000
				lowStart = 0
				lowEnd = 0.1
				highStart = 0.6
				highEnd = 1
				globalDensity = 0
				planetOpacity = 0.002323827
				oceanFogDistance = 0
			}
			FallbackMaterial
			{
				saturation = 1
				contrast = 1.55
				tintColor = 1,1,1,0
				texTiling = 1000
				texPower = 0.5
				multiPower = 0.3
				groundTexStart = 20000
				groundTexEnd = 60000
				multiFactor = 0.5
				mainTex = BUILTIN/SandyGround
				mainTexScale = 1,1
				mainTexOffset = 0,0
				planetOpacity = 1
			}
			Mods
			{
				AerialPerspectiveMaterial
				{
					atmosphereDepth = 105000
					DEBUG_SetEveryFrame = True
					globalDensity = -1E-05
					heightFalloff = 6.75
					oceanDepth = 0
					order = 101
					enabled = True
					name = _Material_AerialPerspective
				}
				VertexHeightNoise
				{
					deformity = 400
					frequency = 18
					octaves = 4
					persistence = 0.7
					seed = 1238999999
					noiseType = RiggedMultifractal
					mode = Low
					lacunarity = 3
					order = 21
					enabled = True
					name = _HeightNoise
				}
				VertexSimplexHeightMap
				{
					deformity = 900
					frequency = 12
					heightEnd = 1
					heightStart = 0.6
					map = TripleTriple/Textures/PluginData/AeualikHgt.dds
					octaves = 8
					persistence = 0.5
					seed = 57545
					order = 20
					enabled = True
					name = _HeightNoise
				}
				QuadEnhanceCoast
				{
					coastLessThan = 0
					oceanFactor = 1
					order = 9999
					enabled = True
					name = _CoastlineLOD
				}
				VertexHeightNoiseVertHeight
				{
					heightStart = 0.2
					heightEnd = 1
					deformity = 150
					frequency = 400
					octaves = 2
					persistance = 0.7
					seed = 3246788
					mode = Low
					noiseType = Billow
					lacunarity = 2
					order = 30
					enabled = True
					name = _FineDetail
				}
				VertexMitchellNetravaliHeightMap
				{
					map = TripleTriple/Textures/PluginData/AeualikHgt.dds
					offset = -1500
					deformity = 12000
					scaleDeformityByRadius = false
					order = 1
					enabled = true

					B = 1
					C = 0
				}
				VertexColorMap
				{
					map = TripleTriple/Textures/PluginData/AeualikClr.dds
					order = 60
					enabled = True
				}
			}
		}
		Ocean
		{
			ocean = True
			oceanColor = 0.156716406,0.12626785,0.116715364,1
			oceanHeight = 0
			density = 1
			minLevel = 1
			maxLevel = 6
			minDetailDistance = 8
			maxQuadLengthsPerFrame = 0.03
			Material
			{
				color = 0.514925361,0.2,0.01,1
				colorFromSpace = 0.114925361,0.02,0.001,1
				specColor = 1,1,1,1
				shininess = 1
				gloss = 0.2
				tiling = 1000
				waterTex = TripleTriple/Textures/PluginData/lava.dds
				waterTexScale = 1,1
				waterTexOffset = 0,0
				waterTex1 = TripleTriple/Textures/PluginData/lava.dds
				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 = TripleTriple/Textures/PluginData/lava.dds
				waterTexScale = 1,1
				waterTexOffset = 0,0
				waterTex1 = TripleTriple/Textures/PluginData/lava.dds
				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
					map = TripleTriple/Textures/PluginData/AeualikGlow.dds
					brightness = 1
					transparency = 0.5
				}
				AerialPerspectiveMaterial
				{
					atmosphereDepth = 5000
					DEBUG_SetEveryFrame = False
					globalDensity = -7.5E-06
					heightFalloff = 0.2
					oceanDepth = 0
					order = 100
					enabled = True
					name = _Material_AerialPerspective
				}
				RemoveQuadMap
				{
					map = TripleTriple/Textures/PluginData/AeualikHgt.dds
					deformity = 0
					maxHeight = 0.5
					minHeight = 0
					order = 1000
					enabled = True
					name = QuadRemoveMap
				}
				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
					}
				}
			}
		}
}