Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Body[Laythe]
- {
- @Atmosphere
- {
- // effectively the ambient lighting color for all objects on the ground of this body (provides a slight tint)
- ambientColor = 0.075,0.08,0.095,1
- // sets the waveLength property in the AtmosphereFromGround component of the scaled version
- // From my picking around in the KSP assemblies, it seems this is fed to the shader in this way:
- //
- // shader.invWaveLength = Color( 1 / r^4, 1 / g^4, 1 / b^4, 0.5);
- //
- // Obviously the code for the shader is not available, and I don't feel like picking through ARB shader IL so we'll need
- // to figure this out experiementally.
- lightColor = 0.762094, 0.7163926, 0.6708019506, 0.5
- //AtmosphereFromGround
- //{
- //outerRadiusMult = 1.032
- //innerRadiusMult = 0.958
- //}
- }
- @Orbit
- {
- color = RGBA(38.25, 63.75, 12.75, 255)
- }
- @Properties
- {
- //tidallyLocked = true
- biomeMap = AlternisKerbol/Laythe/PluginData/LaytheBiomes.png
- Biomes
- {
- Biome
- {
- name = Ocean
- value = 1.0
- color = 0,0,0,1
- }
- Biome
- {
- name = Land
- value = 1.4
- color = 1,1,1,1
- }
- }
- @ScienceValues
- {
- landedDataValue = 3
- splashedDataValue = 3
- flyingLowDataValue = 2.5
- flyingHighDataValue = 2
- inSpaceLowDataValue = 1.5
- inSpaceHighDataValue = 1
- recoveryValue = 3
- }
- description = Long known as Kerbin's sister moon, Laythe was seeded with life hundreds of millions of years ago when a large asteroid struck Kerbin - catapulting boulders with various life forms into orbit around Jool. Given its proximity to Kerbin, some of this impact debris found its way to Laythe, depositing a precious cargo of microbes and, according to some theories, whole plant seeds. This life quickly spread across the moon, until it became the lush green world we know today.(There are, however, fringe theorists who believe that life started on Laythe and was brought to Kerbin, but that's just absurd)
- }
- @ScaledVersion
- {
- Material
- {
- normals = AlternisKerbol/Laythe/Textures/Laythe_Normal
- texture = AlternisKerbol/Laythe/Textures/Laythe_Color
- Gradient
- {
- 0.0 = 0.72549,0.81961,0.83529,1
- 0.6 = 0.0549,0.0784,0.141,1
- 1.0 = 0.0196,0.0196,0.0196,1
- }
- }
- }
- @Template
- {
- removeOcean = true
- }
- Ocean
- {
- maxQuadLengthsPerFrame = 0.03
- minLevel = 2
- maxLevel = 12
- minDetailDistance = 8
- oceanColor = #1E2028
- Material
- {
- colorFromSpace = #1E2028
- color = 0.117,0.125,0.156,1.000
- shininess = 0.08
- }
- FallbackMaterial
- {
- colorFromSpace = #1E2028
- color = 0.117,0.125,0.156,1.000
- }
- Mods
- {
- AerialPerspectiveMaterial
- {
- globalDensity = -0.00001
- heightFalloff = 6.75
- atmosphereDepth = 150000
- DEBUG_SetEveryFrame = true
- cameraAlt = 0
- cameraAtmosAlt = 0
- heightDensAtViewer = 0
- enabled = true
- order = 100
- }
- OceanFX
- {
- framesPerSecond = 1
- spaceAltitude = 150000
- blendA = 0
- blendB = 0
- texBlend = 0
- angle = 0
- specColor = 0.117,0.125,0.156,1.000
- oceanOpacity = 0
- spaceSurfaceBlend = 0
- enabled = true
- order = 100
- }
- }
- }
- @PQS
- {
- materialType = AtmosphericMain
- Material
- {
- saturation = 1
- contrast = 4
- tintColor = 0.173,0.173,0.173,0.852
- powerNear = 0.75
- powerFar = 0.75
- groundTexStart = 0
- groundTexEnd = 10000
- steepPower = 4
- steepTexStart = 10000
- steepTexEnd = 100000
- steepTex = BUILTIN/terrain_rock00
- steepBumpMap = BUILTIN/Cliff (Layered Rock)_NRM
- steepNearTiling = 1000
- steepTiling = 100
- lowTex = BUILTIN/terrain_sand00
- lowBumpMap = BUILTIN/Waterbump
- lowNearTiling = 4000
- lowMultiFactor = 10
- lowBumpNearTiling = 4000
- lowBumpFarTiling = 10
- midTex = BUILTIN/terrain_grass00_new
- midBumpMap = BUILTIN/cloud_normal
- midNearTiling = 4000
- midMultiFactor = 100
- midBumpNearTiling = 1000
- midBumpFarTiling = 100
- highTex = BUILTIN/terrain_snow00
- highBumpMap = BUILTIN/05_NORMAL
- highNearTiling = 4000
- highMultiFactor = 4
- highBumpNearTiling = 2000
- highBumpFarTiling = 4
- lowStart = 0.02
- lowEnd = 0.1
- highStart = 0.5
- highEnd = 1
- globalDensity = -8E-06
- fogColorRamp = BUILTIN/AerialRampKerbin
- }
- Mods
- {
- VertexColorMap
- {
- map = AlternisKerbol/Laythe/Textures/newlaythe_dif.png
- enabled = true
- order = 200
- }
- VertexHeightMap
- {
- map = AlternisKerbol/Laythe/PluginData/laythe_newheight.png
- offset = -400
- deformity = 7000
- enabled = true
- }
- VertexHeightNoise
- {
- deformity = 250
- frequency = 8
- enabled = true
- }
- }
- LandControl
- {
- landClasses
- {
- Class
- {
- name = Mud
- color = 0.35, 0.25, 0.2, 1
- noiseColor = 0.26, 0.27, 0.15, 1
- noiseBlend = 0.8
- noiseFrequency = 20
- }
- Class
- {
- name = BaseLand
- color = 0.16, 0.185, 0.15, 1
- noiseColor = 0.14, 0.15, 0.02, 1
- noiseBlend = 0.2
- }
- Class
- {
- name = IceCaps
- latitudeRange
- {
- startStart = -10
- startEnd = -10
- endStart = 0.09
- endEnd = 0.1
- }
- }
- enabled = true
- }
- }
- }
- }
- }
- ---------------------------------------------------------------------------------------------------------------------------------
- #region laythe
- //Laythe is just as important in the grand scheme of things as kerbin!
- //Let's remake it completely, it deserves better.
- cb_laythe.pqsController.surfaceMaterial = new Material(cb_kerbin.pqsController.surfaceMaterial);
- cb_laythe.pqsController.maxLevel = cb_kerbin.pqsController.maxLevel;
- cb_laythe.pqsController.minLevel = cb_kerbin.pqsController.minLevel;
- cb_laythe.pqsController.minDetailDistance = cb_kerbin.pqsController.minDetailDistance;
- cb_laythe.pqsController.maxDetailDistance = cb_kerbin.pqsController.maxDetailDistance;
- cb_laythe.atmosphericAmbientColor = new Color(0.075f, 0.08f, 0.095f);
- cb_laythe.orbitDriver.orbitColor = new Color(0.15f, 0.25f, 0.05f);
- cb_laythe.orbit.LAN = 0;
- cb_laythe.orbit.argumentOfPeriapsis = 0;
- cb_laythe.orbit.meanAnomalyAtEpoch = 1;
- cb_laythe.bodyDescription = "Long known as Kerbin's sister moon, Laythe was seeded with life hundreds of millions of years ago when a large asteroid struck Kerbin - catapulting boulders with various life forms into orbit around Jool. Given its proximity to Kerbin, some of this impact debris found its way to Laythe, depositing a precious cargo of microbes and, according to some theories, whole plant seeds. This life quickly spread across the moon, until it became the lush green world we know today.\n\n(There are, however, fringe theorists who believe that life started on Laythe and was brought to Kerbin, but that's just absurd)";
- cb_laythe.scienceValues.LandedDataValue = 3;
- cb_laythe.scienceValues.SplashedDataValue = 3;
- cb_laythe.scienceValues.InSpaceLowDataValue = 1.5f;
- cb_laythe.scienceValues.InSpaceHighDataValue = 1;
- cb_laythe.scienceValues.FlyingLowDataValue = 2.5f;
- cb_laythe.scienceValues.FlyingHighDataValue = 2;
- cb_laythe.scienceValues.RecoveryValue = 3;
- print("PlanetShifter: Shifting Laythe terrain");
- PQSLandControl cb_laythe_lc = cb_laythe.pqsController.gameObject.GetComponentInChildren<PQSLandControl>();
- if (cb_laythe_lc != null)
- {
- print("Found LandControl, spewing land classes...");
- foreach (PQSLandControl.LandClass lc in cb_laythe_lc.landClasses)
- {
- print(lc.landClassName);
- print(lc.color);
- if (lc.landClassName == "Mud")
- {
- lc.color = new Color(0.35f, 0.25f, 0.2f);
- lc.noiseColor = new Color(0.26f, 0.27f, 0.15f);
- lc.noiseBlend = 0.8f;
- lc.noiseFrequency = 20;
- }
- if (lc.landClassName == "BaseLand")
- {
- lc.color = new Color(0.16f, 0.185f, 0.15f);
- lc.noiseColor = new Color(0.14f, 0.15f, 0.02f);
- lc.noiseBlend = 0.2f;
- }
- if (lc.landClassName == "IceCaps")
- {
- lc.latitudeRange.endStart = 0.09;
- lc.latitudeRange.endEnd = 0.1;
- //print("IceCap latitude whatsit: ss-" + lc.latitudeRange.startStart + " se-" + lc.latitudeRange.startEnd + " es-" + lc.latitudeRange.endStart + " ee-" + lc.latitudeRange.endEnd);
- }
- }
- }
- PQSMod_VertexHeightMap cb_laythe_hm = cb_laythe.pqsController.gameObject.GetComponentInChildren<PQSMod_VertexHeightMap>();
- if (cb_laythe_hm != null && newLaytheHeight != null)
- {
- Destroy(cb_laythe_hm.heightMap); //obliterate the old heightmap
- cb_laythe_hm.heightMap = ScriptableObject.CreateInstance<MapSO>();
- cb_laythe_hm.heightMap.CreateMap(MapSO.MapDepth.Greyscale, newLaytheHeight); //turn it into something usable
- cb_laythe_hm.heightMapOffset = -400;
- cb_laythe_hm.heightMapDeformity = 7000; //tweak deformity
- Destroy(newLaytheHeight); //and then nuke the texture
- }
- PQSMod_VertexHeightNoise cb_laythe_vhn = cb_laythe.pqsController.gameObject.GetComponentInChildren<PQSMod_VertexHeightNoise>();
- if (cb_laythe_vhn != null)
- {
- cb_laythe_vhn.deformity = 250;
- cb_laythe_vhn.frequency = 8;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement