Skip to content

Commit

Permalink
hide stock ocean material
Browse files Browse the repository at this point in the history
  • Loading branch information
LGhassen committed Sep 1, 2020
1 parent a503efb commit 4c04b1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions scatterer/Effects/Proland/Ocean/Utils/OceanUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ public static void removeStockOceans()
PQS ocean = pqs.ChildSpheres [0];
if (ocean != null)
{
//Leave it like this for a while until we make sure it works even with mods kopernicus etc, when that's done
//add the material to hide it in the first few frames when switching back from map mode, and also just in case
// ocean.surfaceMaterial = invisibleOcean;
// ocean.surfaceMaterial.SetOverrideTag ("IgnoreProjector", "True");
// ocean.surfaceMaterial.SetOverrideTag ("ForceNoShadowCasting", "True");
//Add the material to hide it in the first few frames when switching back from map mode, and also just in case
ocean.surfaceMaterial = invisibleOceanMaterial;
ocean.surfaceMaterial.SetOverrideTag ("IgnoreProjector", "True");
ocean.surfaceMaterial.SetOverrideTag ("ForceNoShadowCasting", "True");

GameObject go = new GameObject ();
FakeOceanPQS fakeOcean = go.AddComponent<FakeOceanPQS> ();
Expand Down
3 changes: 2 additions & 1 deletion scatterer/Scatterer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using UnityEngine;
using UnityEngine.Rendering;

[assembly:AssemblyVersion("0.0632")]
namespace scatterer
{
[KSPAddon(KSPAddon.Startup.EveryScene, false)]
Expand Down Expand Up @@ -55,7 +56,7 @@ public partial class Scatterer: MonoBehaviour
bool coreInitiated = false;
public bool isActive = false;
public bool unifiedCameraMode = false;
public string versionNumber = "0.0631";
public string versionNumber = "0.0632";

void Awake ()
{
Expand Down
3 changes: 2 additions & 1 deletion scatterer/Shaders/scattererShaders/Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<None Include="Assets\Shaders\OldOrUnused\SimpleBlit.shader" />
<None Include="Assets\Shaders\DepthTexture\ShadowVolumeDepthGEOM.shader" />
<None Include="Assets\Shaders\OldOrUnused\SunGlare - Copy.shader" />
<None Include="Assets\Shaders\Ocean\ReadData.compute" />
<None Include="Assets\Shaders\DepthTexture\DepthToDistance.shader" />
<None Include="Assets\Shaders\Instancing\My First Shader.shader" />
<None Include="Assets\Shaders\EVE\old\noiseSimplex.cginc" />
Expand Down Expand Up @@ -128,6 +129,7 @@
<None Include="Assets\Shaders\OldOrUnused\SkyScaledBox.shader" />
<None Include="Assets\Shaders\DepthTexture\ShadowVolumeDepth - Copy.shader" />
<None Include="Assets\Shaders\Grass\Grass.shader" />
<None Include="Assets\Shaders\Ocean\SlopeVariance.compute" />
<None Include="Assets\Shaders\EVE\alphaMap.cginc" />
<None Include="Assets\Shaders\Ocean\underwaterPostProcessing32bitViewSpaceDepth.shader" />
<None Include="Assets\Shaders\Ocean\InvisibleOcean.shader" />
Expand All @@ -136,7 +138,6 @@
<None Include="Assets\Shaders\Grass\GrassBak.shader" />
<None Include="Assets\Shaders\Ocean\UnderwaterProjector.shader" />
<None Include="Assets\Shaders\KSP\Diffuse.shader" />
<None Include="Assets\Shaders\EVE\CloudVolumeParticleBAKKK.shader" />
<None Include="Assets\Shaders\RingCommon.cginc" />
<None Include="Assets\Shaders\EVE\SphereCloud.shader" />
<None Include="Assets\Shaders\Ocean\InitJacobians.shader" />
Expand Down

0 comments on commit 4c04b1a

Please sign in to comment.