@Kopernicus:FOR[OPX-SarnusPlus]:HAS[@OPX_SarnusPlus_Settings:HAS[#UseInnerPseudobodies[True]]]
{
	Body
	{
		name = I4-Palar
		identifier = OPX/I4-Palar
		cacheFile = OPX-SarnusPlus/Cache/Pseudobodies/Palar.bin
		contractWeight = 0
		Template
		{
			name = Bop
			removePQSMods = PQSMod_VertexHeightMap, PQSCity, PQSLandControl, PQSMod_FlattenArea, PQSMod_AltitudeAlpha, PQSMod_MapDecal, PQSMod_VertexSimplexNoiseColor, PQSMod_VertexSimplexHeightAbsolute, PQSMod_VertexHeightNoise
		}
		Orbit
		{
			referenceBody = Sarnus
			semiMajorAxis = 21230000
			eccentricity = 0.00422681566547132
			inclination = 0.1810
			meanAnomalyAtEpochD = 308.2287666153783
			longitudeOfAscendingNode = 131.0902568728964
			argumentOfPeriapsis = 234.9619599107479
			color = 0.3, 0.3, 0.3, 1.0
            iconTexture = OPX-SarnusPlus/Textures/PluginData/Small.png
		}
		Properties
		{
			description = #LOC_OPX-SP_Palar_Desc
			radius = 1839.795 // 2230
			mass = 1.15e+15
			//rotationPeriod = 100080.413588
			sphereOfInfluence = 10000
			tidallyLocked = True
			initialRotation = 224
			isHomeWorld = false
			maxZoom = 7500
			displayName = #LOC_OPX-SP_Palar_Name
			biomeMap = OPX-SarnusPlus/Textures/PluginData/Empty_Biome.png
			Biomes
			{
				Biome
				{
					name = Surface
					displayName = #LOC_OPX-SP_Common_Biome_S
					value = 1
					color = RGBA(127,127,127,255)
				}
			}
			ScienceValues
			{
				landedDataValue = 9
                @landedDataValue *= 0.2
				inSpaceLowDataValue = 8
                @inSpaceLowDataValue *= 0.2
				inSpaceHighDataValue = 7
                @inSpaceHighDataValue *= 0.2
				recoveryValue = 8
				spaceAltitudeThreshold = 11000 
			}
		}
		ScaledVersion
		{
			type = Vacuum
			fadeStart = 1500
			fadeEnd = 2000
			Material
			{
				texture = OPX-SarnusPlus/Textures/PluginData/Palar_Color.dds
				normals = OPX-SarnusPlus/Textures/PluginData/Palar_Normal.dds
                shininess = 0.05
				specular = 0,0,0,1
			}
		}
		PQS
		{
			maxQuadLengthsPerFrame = 0.03
			minLevel = 2
			maxLevel = 10
			minDetailDistance = 8
			deactivateAltitude = 2500
			fadeStart = 2000
			fadeEnd = 2500

			materialType = AtmosphericTriplanarZoomRotation
			Material
			{
				factor = 6
				factorBlendWidth = 0.1
				factorRotation = 45
				
				saturation = 1
				contrast = 1
				tintColor = 1,1,1,0
				specularColor = 0,0,0,0
				albedoBrightness = 3.0
				
				steepPower = 1
				steepTexStart = 0
				steepTexEnd = 0
				steepTex = BUILTIN/terrain_rock00
				steepTexScale = 1,1
				steepTexOffset = 0,0
				steepBumpMap = BUILTIN/Cliff (Layered Rock)_NRM
				steepBumpMapScale = 1,1
				steepBumpMapOffset = 0,0
				steepNearTiling = 1
				steepTiling = 1
				
				lowTex = BUILTIN/gillyMedTerrain_diffuse
				lowTexScale = 1,1
				lowTexOffset = 0,0
				lowTiling = 70000
				
				midTex = BUILTIN/gillyMedTerrain_diffuse
				midTexScale = 1,1
				midTexOffset = 0,0
				midTiling = 70000
				midBumpMap = BUILTIN/gillyMedTerrain_nrm
				midBumpMapScale = 1,1
				midBumpMapOffset = 0,0
				midBumpTiling = 70000
				
				highTex = BUILTIN/gillyMedTerrain_diffuse
				highTexScale = 1,1
				highTexOffset = 0,0
				highTiling = 70000
				
				lowStart = -1
				lowEnd = -1
				highStart = 2
				highEnd = 2
				
				globalDensity = 1
				
				fogColorRamp =
				fogColorRampScale = 1,1
				fogColorRampOffset = 0,0
				
				planetOpacity = 1
				oceanFogDistance = 1000
			}

			Mods
			{
				VertexColorMap
				{
					map = OPX-SarnusPlus/Textures/PluginData/Palar_Color.dds
					order = 9999993
					enabled = true
				}
				VertexHeightOblateAdvanced
				{
					oblateMode = CustomEllipsoid
					a = 1.5652
					b = 1.1304
					c = 1
				}
				VertexMitchellNetravaliHeightMap
				{
					map = OPX-SarnusPlus/Textures/PluginData/Palar_Height.dds
					offset = 0
					deformity = 1039.619
					scaleDeformityByRadius = false
					order = 10
					enabled = false
				}
				VertexSimplexHeight
				{
					seed = 2211221
					deformity = 0.01
					octaves = 12.0
					persistence = 0.7
					frequency = 10
					enabled = true
					order = 100
				}
			}
		}
	}
}
