@Kopernicus:FOR[OPX-SarnusPlus]
{
	Body
    {
		name = Ryla
		finalizeOrbit = False
		cacheFile = OPX-SarnusPlus/Cache/Ryla.bin
		
		Template
		{
			name = Eeloo
			removeAllPQSMods = true
		}
        Orbit
        {
            referenceBody = Sarnus
            color = #a08d76
            inclination = 0.005
            eccentricity = 0
			semiMajorAxis = 18454180 // 12169413
            longitudeOfAscendingNode = 55
            argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 1.72
            epoch = 751.7
            iconTexture = OPX-SarnusPlus/Textures/PluginData/Small.png
        }
        Properties
        {
            description = #LOC_OPX-SP_Ryla_Desc
            radius = 5250
            geeASL = 0.0005
			rotates = true
			tidallyLocked = true
			initialRotation = 315
			isHomeWorld = false
			timewarpAltitudeLimits = 0 0 0 0 0 0 0 0
			sphereOfInfluence = 20000
			displayName = #LOC_OPX-SP_Ryla_Name
			ScienceValues
			{
				landedDataValue = 20
				inSpaceLowDataValue = 13
				inSpaceHighDataValue = 11
				recoveryValue = 11
				spaceAltitudeThreshold = 10000
			}
            biomeMap = OPX-SarnusPlus/Textures/PluginData/Ryla_Biome.png
            Biomes
            {
				Biome
				{
					name = Poles
					displayName = #LOC_OPX-SP_Ryla_Biome_P
					value = 1
					color = #605b4a
				}
				Biome
				{
					name = Temperate Regions
					displayName = #LOC_OPX-SP_Ryla_Biome_TR
					value = 1
					color = #8e9eb3
				}
				Biome
				{
					name = Highlands
					displayName = #LOC_OPX-SP_Ryla_Biome_H
					value = 1
					color = #c2cada
				}
				Biome
				{
					name = Impact Craters
					displayName = #LOC_OPX-SP_Ryla_Biome_IC
					value = 1
					color = #fff15f
				}
			}
		}     
	
        ScaledVersion
        {
            type = Vacuum
            fadeStart = 10000
            fadeEnd = 14000
            Material
            {
                texture = OPX-SarnusPlus/Textures/PluginData/Ryla_Color.png
				normals = OPX-SarnusPlus/Textures/PluginData/Ryla_Normal.dds
				shininess = 0.0
				specular = 0.0,0.0,0.0,1
			}
		}

		PQS
        {
			maxQuadLengthsPerFrame = 0.03
			minLevel = 2
			maxLevel = 10
			minDetailDistance = 8
			deactivateAltitude = 16000
			fadeStart = 14600
			fadeEnd = 16000

			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 = 2.5
				
				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/ikeGround_diffuse
				lowTexScale = 1,1
				lowTexOffset = 0,0
				lowTiling = 70000
				
				midTex = BUILTIN/ikeGround_diffuse
				midTexScale = 1,1
				midTexOffset = 0,0
				midTiling = 70000
				midBumpMap = BUILTIN/ikeGround_nrm
				midBumpMapScale = 1,1
				midBumpMapOffset = 0,0
				midBumpTiling = 70000
				
				highTex = BUILTIN/ikeGround_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/Ryla_Color.png
					order = 100
					enabled = True
				}
				VertexMitchellNetravaliHeightMap
				{
					map = OPX-SarnusPlus/Textures/PluginData/Ryla_Height.png
					offset = 0
					deformity = 5187.5
					scaleDeformityByRadius = False
					order = 20
					enabled = True
				}
				VertexHeightOffset
				{
					offset = 0
					order = 100
					enabled = True
				}
				VoronoiCraters
				{
					colorOpacity = -0.5
					DebugColorMapping = False
					deformation = 150
					jitter = 0.1
					jitterHeight = 3
					rFactor = 1
					rOffset = 1
					simplexFrequency = 120
					simplexOctaves = 3
					simplexPersistence = 0.5
					simplexSeed = 123123
					voronoiDisplacement = 0
					voronoiFrequency = 5
					voronoiSeed = 2
					order = 100
					enabled = True
					CraterCurve
					{
						key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
						key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
						key = -0.8990405 -0.7433339 -2.560626 -2.560626
						key = -0.7445966 -0.8581167 0.4436148 0.4436148
						key = -0.4499771 -0.1392395 5.289535 5.289535
						key = -0.4015177 0.2551735 9.069458 -2.149609
						key = -0.2297457 0.002857953 -0.4453675 -0.4453675
						key = 0.2724952 0.00423781 -0.01884932 -0.01884932
						key = 0.9998434 -0.004090764 0.01397126 0.01397126
					}
					JitterCurve
					{
						key = -1.000701 0.4278412 0.1577609 0.1577609
						key = -0.7884969 0.09487452 -0.7739663 -0.7739663
						key = -0.6091803 0.072019 0.123537 0.123537
						key = -0.3930514 0.3903495 3.300831 3.300831
						key = -0.3584836 0.8643304 0.07139917 0.07139917
						key = -0.2988068 0.002564805 -0.01814346 -0.01814346
						key = 0.9970253 0.003401639 0 0
					}
				}
				AltitudeAlpha
				{
					atmosphereDepth = 8000
					invert = False
					order = 999999999
					enabled = True
				}
				VertexSimplexHeightAbsolute
				{
					deformity = 5
					frequency = 0.800000011920929
					octaves = 3
					persistence = 0.5
					seed = 3339066
					order = 10
					enabled = True
				}
				VertexHeightNoise
				{
					deformity = 15
					frequency = 3
					octaves = 6
					persistence = 0.5
					seed = 783456456
					noiseType = RiggedMultifractal
					mode = Low
					lacunarity = 1.5
					order = 22
					enabled = True
				}
				VertexSimplexHeight
				{
					deformity = 25
					frequency = 12
					octaves = 10
					persistence = 0.5
					seed = 435213423
					order = 20
					enabled = True
				}
				VertexHeightNoiseVertHeight
				{
					heightStart = 0.2
					heightEnd = 1
					deformity = 25
					frequency = 20
					octaves = 4
					persistance = 0.7
					seed = 78967456
					mode = Low
					noiseType = Perlin
					lacunarity = 3
					order = 30
					enabled = True
				}
				VertexSimplexNoiseColor
				{
					blend = 1
					colorStart = 0.171641797,0.150430605,0.130652696,1
					colorEnd = 0.291044801,0.240740001,0.212853596,1
					frequency = 1
					octaves = 6
					persistence = 0.5
					seed = 64564
					order = 100
					enabled = False
				}
			}
		}
	}
}
