Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Kopernicus/Kopernicus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0cd5e5a5b98a
Choose a base ref
...
head repository: Kopernicus/Kopernicus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 043687093237
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Apr 5, 2018

  1. Copy the full SHA
    507cfe9 View commit details
  2. Copy the full SHA
    0436870 View commit details
Showing with 2 additions and 7 deletions.
  1. +1 −2 src/Kopernicus.Components/KopernicusStarOcclusion.cs
  2. +1 −5 src/Kopernicus/Configuration/PQSLoader.cs
3 changes: 1 addition & 2 deletions src/Kopernicus.Components/KopernicusStarOcclusion.cs
Original file line number Diff line number Diff line change
@@ -71,7 +71,6 @@ void Start()
OcclusionNetComponent component = new GameObject().AddComponent<OcclusionNetComponent>();
component.transform.parent = Star.transform.parent;
component.Body = Star.sun;
component.Target = Star.target;
component.Vertex = mesh.vertices[i];
_colliders[i / Resolution] = component;
}
@@ -87,7 +86,7 @@ void Update()
Int32 amount = 0;
for (Int32 i = 0; i < _colliders.Length; i++)
{
_colliders[i].Target = Star.target;
_colliders[i].Target = FlightGlobals.ActiveVessel.transform;
if (!_colliders[i].IsOccluded)
{
amount++;
6 changes: 1 addition & 5 deletions src/Kopernicus/Configuration/PQSLoader.cs
Original file line number Diff line number Diff line change
@@ -241,11 +241,7 @@ public PQSLoader ()
PSystemBody Laythe = Utility.FindBody(Injector.StockSystemPrefab.rootBody, "Laythe");
Utility.CopyObjectFields(Laythe.pqsVersion, Value);
Value.surfaceMaterial = Laythe.pqsVersion.surfaceMaterial;

// Create the fallback material (always the same shader)
fallbackMaterial = new PQSProjectionFallbackLoader();
Value.fallbackMaterial = fallbackMaterial;
fallbackMaterial.name = Guid.NewGuid().ToString();
Value.fallbackMaterial = Laythe.pqsVersion.fallbackMaterial;

// Create the celestial body transform
GameObject mod = new GameObject("_CelestialBody");